Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 1.2 KB

README.md

File metadata and controls

17 lines (11 loc) · 1.2 KB

Election 2020 Results

I used election 2020 data to create a website that was served that data and generated graphs. The data was collected from Kaggle.com (https://www.kaggle.com/unanimad/us-election-2020) and the files used were: president_county.csv, president_county_candidate.csv, and president_state.csv.

image


I set up a backend server using MongoDB (create_mongodb.ipynb). I used Python to calculate the election percentages by state and by county and Flask to serve the data to a local server.

image


Finally, I used JavaScript, D3, and Geojson information to create a dynnamic map the United States based on candidate win percentage at the state and county level. image

(When a state is clicked on. In the example below, Georgia was clicked.) image