Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weather DarkSky Weather API - 142 #12

Open
jamesmoulding opened this issue Nov 10, 2018 · 0 comments
Open

Weather DarkSky Weather API - 142 #12

jamesmoulding opened this issue Nov 10, 2018 · 0 comments
Labels
Hack Day Challenge This is one of our 10 Hack Day Challenges! Still to do! 🤸 Still to do!

Comments

@jamesmoulding
Copy link

jamesmoulding commented Nov 10, 2018

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.

  • replace the lat long in the package with the ward-level lat long from X(the center point of each ward via datapoint 145 in the data inventory) with a FOR loop.

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.

@jamesmoulding jamesmoulding changed the title DarkSky Weather API & API Key - 142 DarkSky Weather API - 142 Nov 10, 2018
@hannah-o-rourke hannah-o-rourke changed the title DarkSky Weather API - 142 Weather DarkSky Weather API - 142 Nov 28, 2018
@hannah-o-rourke hannah-o-rourke added the Hack Day Challenge This is one of our 10 Hack Day Challenges! label Nov 28, 2018
@hannah-o-rourke hannah-o-rourke added the Still to do! 🤸 Still to do! label Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hack Day Challenge This is one of our 10 Hack Day Challenges! Still to do! 🤸 Still to do!
Projects
None yet
Development

No branches or pull requests

2 participants