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.dev2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f558a0ffce26812123bba1988fc9d7d027300d401e16fd9227433098c813bc3c |
|
MD5 | 138e89fe0befe4676f8020f0e932961e |
|
BLAKE2b-256 | 2f399a836ecf5d82dc2e8217e1b996d5b6aea06371097947a1b977e805bd2ddd |
Close
Hashes for politico_civic_race_ratings-1.0a1.dev2-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 765b393350ab56d593793f1156770f38dd4ee73623e6371d34f5f73274b04635 |
|
MD5 | f82779394aafc23d375f6d9f5c369066 |
|
BLAKE2b-256 | eceb6c7f8f35a50b85960c441e0fbf5e0d901bf312014bdc5e26b861921b1ced |