Geospatial analysis with geopandas and plotly express using US election data from the MIT Election Lab
https://twitter.com/adammgrant/status/1324872885324935168?lang=en
From Rutchick, et al:
Colored maps depicting electoral results may exacerbate perceptions of polarization, rather than merely reflecting them. Participants viewed maps of state‐by‐state Presidential election results that were either Electoral (red/Republican or blue/Democrat) or Proportional (purples that proportionally reflected each group's support). Half of the maps also displayed state‐level numeric electoral results. Participants viewing Electoral maps perceived the nation as more politically divided, stereotyped the political beliefs of residents of various states more, and saw people holding views in the political minority as less agentic and less likely to vote. These differences occurred even in the presence of numeric data. Implications of these findings for intergroup perception in several domains are discussed, including the impact of electoral depictions on political campaigns and elections.
Here, we'll use geopandas
and plotly express
to create proportional election vote maps of US Presidential elections from 1976-2016.
- MIT Election Lab: https://electionlab.mit.edu/data
- US Census US State Shapefiles: https://www.census.gov/geographies/mapping-files/time-series/geo/carto-boundary-file.html