Basic Examples (3)
Get polling data for the 1976 US presidential election from fivethirtyeight.com:
Retrieve polling data for the 2020 election cycle:
Get all polling data:
See the included elections dates:
See the number of statewide averages for each state or region:
Scope (3)
Use a DateObject to specify the date:
Get data for two elections:
Get all polling data without the current election cycle using "Historic":
Applications (3)
Get current polling for the 2024 election and group all the polls by pollster and population, then split by polling date:
For each date, find a single value for each candidate. The Min will use many-candidate results over two-candidate results:
Create time series from the data, eliminating pollsters without recent or many polls:
Plot all the series:
Take a simple average over the pollsters at regular intervals and plot the result:
Select data from just one election:
See the candidates:
Get the last result for each state:
Calculate the estimated difference in support between the two candidates:
Calculate timeline plots for each state:
Create a map of the support difference which shows the timelines when hovered:
Get data for another election:
Create time series data for each state:
Get the difference in support between the top two candidates over time for each state with over two hundred estimates:
Create a list of TimeSeries with samples over the smallest common range:
Calculate the correlations between states:
See the results:
Visualize it:
Possible Issues (3)
The 2020 data includes numbers adjusted for convention bounces:
The bounce-adjusted numbers differ considerably from the standard average:
Use only non-bounce-adjusted values instead: