I tested and debugged the functionality I worked on last time and added further abstraction in the form of another function to get the data from aggregating participation in three elections (which were indexed a little differently than town meetings, meaning the call to agg_voter_data was different) directly.
Instead of printing this data out, I wanted a way to save it somewhere, so I returned the values I was calculating in the form of a Series instead of printing them out. I then added all of these Series into a DataFrame which was then logged to a CSV file. From this CSV, I hope to be able to visualize voter participation over time from a variety of different samples. I created pie charts surrounding the sample of voters who did not participate in the first event, comparing the percentage that continued to be inactive throughout and the percentage that was active in another event later on in the selected time frame. My goal right now is to continue highlighting different data points and bringing them to life by creating various types of visualizations. In addition to the pie and bar charts I've created so far, I want to make line graphs that go into more detail of voter participation in things like local and state elections. |
AuthorI'm a high school senior and programming enthusiast. Archives
March 2022
Categories |