A python project that allows the user to view filtered data and analysis on the voting data provided.
The python program will be able to ask the user which option they would like to view, and the program will correctly respind, providing the user with the relvent response/visualisation of data
- Use case 1: FINISHED
Reading the CSV file, and putting each line into an object. I chose to use Pythons CSV module as opposed to Pandas because CSV is faster for smaller sets of data (<1k), and the dataset we're given is less than 1k rows (https://stackoverflow.com/questions/62139040/pythons-csv-module-vs-pandas, DarrylG, 2020)
- Use case 2: FINISHED
Filtering all of the voting data into a smaller array that matches a given expression
- Use case 3: FINISHED
User can select which function to use, and change what the output of the program is
-
Search for an MP: FINISHED
-
Find an MP: FINISHED
-
Get statistics for a country: FINISHED
-
Cache your MP: FINISHED
-
Load your MP from cache: FINISHED
-
Votes for a given party received as a percentage of total votes cast: FINISHED
-
Male to female
-
Outstanding parties to a region
-
Allow user to go through a heirarchy to find an mp
-
Show if vote was a clean sweep, or if it was close (look at result column, and majority to determine if it was close or not)