CampaignLab / data-pipeline

Scripts and schemas that aim to make data from the inventory easier to analyse
8 stars 8 forks source link

Weather DarkSky Weather API - 142 #12

Open jamesmoulding opened 5 years ago

jamesmoulding commented 5 years ago

Key Question: Does weather affect vote share for progressive parties in elections?

Theory People say that when it rains Labour's vote share reduces as Labour voters are less likely to go to the polling stations if it rains? Is this true?

Key Data:

See below... dates of two elections are May 22 2014 and May 3 2018.

You could also explore for past general elections. General election results can be found here: https://github.com/CampaignLab/constituency-counts

Task Investigate whether weather affects vote share in an election by seeing if vote share patterns correlate to weather information.

Additional Info DarkSky Weather API - Key is limited to 1000 requests a day.

DarkSkyLib https://github.com/lukaskubis/darkskylib

Create a script to extract the data.

Do this for both May 22 2014 and May 3 2018 to explore the relationship between the weather and vote share.

Note - Not all ward election results include voter turnout.