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
File details
Details for the file politico-civic-race-ratings-1.0a1.dev1.tar.gz
.
File metadata
- Download URL: politico-civic-race-ratings-1.0a1.dev1.tar.gz
- Upload date:
- Size: 1.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79207f2d581dca1ab5a3a11f7f210c8d8d022404fd1fd0807e07edf42829bd3c |
|
MD5 | 040aee7b5b1e8e9df21108b3971cf97b |
|
BLAKE2b-256 | 7e58c751231b754279b692c69ae2b68d3e6ebac78274270546be20714aac02f4 |
File details
Details for the file politico_civic_race_ratings-1.0a1.dev1-py2-none-any.whl
.
File metadata
- Download URL: politico_civic_race_ratings-1.0a1.dev1-py2-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/2.7.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bbbfb18c54d098507864b6b827e48acfd087a5ec76c2e1a580bcb5e7a2f5da4 |
|
MD5 | 32e8010721f13ce453bcec2149cf0536 |
|
BLAKE2b-256 | 7cbb6dd64f1299f9b39cf8653ece7cb1c78dbf409843a737f6191e8ccecc461a |