Manage electoral race ratings, the POLITICO way.
Project description
politico-civic-race-ratings
Ratings scheme
Party direction (2018 and incument position)
- Safe Republican
- Likely Republican
- Lean Republican
- Toss-up
- Lean Democratic
- Likely Democratic
- Safe Democratic
Race features
- Trump bump
- Trump burn
- Party cash splash
- Star candidate
- Dead-weight candidate
- Made Candidate (endrosements)
Page structure
Home page
- Balance of Power by rating
- Modeler
- Filtered table
- Activity feed
Race page
- Current rating
- Shift
- Activity feed
- Candidate info
Historical Data
Where I got the data
- Senate results: https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/PEJ5QU
- House results: https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/IG0UN2
- President results (by state): https://dataverse.harvard.edu/dataset.xhtml?persistentId=doi:10.7910/DVN/42MVDX
How to process the data
- First, run
python manage.py bootstrap_ratings
to create the DataProfile object - Something funky is going on w/ the South Dakota Governor Data Profile ... it isn't generated automatically when you run
bootstrap_ratings
, which then crashesbootstrap_historical
, so create that first. - Then, run
python manage.py bootstrap_historical
to get historical race data for corresponding seat. - PA data ... not currently including: https://docs.google.com/spreadsheets/d/1ztOyo95AVogMPltQxkJGsM4o42H7yzxqfIC5AwiFpkk/edit#gid=1739606676
Notes on the data
- Something is weird in House FL-24 in 2016 ... Frederica S. Wilson got 0 votes ...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for politico-civic-race-ratings-1.0a1.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79207f2d581dca1ab5a3a11f7f210c8d8d022404fd1fd0807e07edf42829bd3c |
|
MD5 | 040aee7b5b1e8e9df21108b3971cf97b |
|
BLAKE2b-256 | 7e58c751231b754279b692c69ae2b68d3e6ebac78274270546be20714aac02f4 |
Close
Hashes for politico_civic_race_ratings-1.0a1.dev1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bbbfb18c54d098507864b6b827e48acfd087a5ec76c2e1a580bcb5e7a2f5da4 |
|
MD5 | 32e8010721f13ce453bcec2149cf0536 |
|
BLAKE2b-256 | 7cbb6dd64f1299f9b39cf8653ece7cb1c78dbf409843a737f6191e8ccecc461a |