prooffreader / election_2016_data Goto Github PK
View Code? Open in Web Editor NEWScraped data from the 2016 U.S. Election (President, Senate, House, Governor) and primaries, ballot measures and exit polls
Scraped data from the 2016 U.S. Election (President, Senate, House, Governor) and primaries, ballot measures and exit polls
Hi,
First off, thanks for compiling all of this information!
I was looking through the presidential_general_election_2016_by_county
file and noticed there are still 507 counties that aren't reported at 100% -- the majority are from Utah and Washington.
Is there any way you could run your script again to scrape the results? I'm assuming all states/counties are reporting at 100% now. That way we'd have an entirely clear view into the total number of votes for each county.
Could you please add some details to the data in the readme file? I have trouble understanding the meaning of each columns. Thanks a lot!
Hi, thanks for scraping this!
I noticed that jill stein is labeled as democrat in DC while filtering for individual_party==Democratic and sorting by vote_pct - somehow, District of Columbia appeared at the top and the bottom of the list.
This happens in data/presidential_general_election_2016_by_county.csv
and data/presidential_general_election_2016.csv
, haven't checked the rest.
$ grep -n 'J. Stein' presidential_general_election_2016.csv | grep Democratic
62:,3.0,Overall 2016 District of Columbia Presidential Election Results,Democratic,False,J. Stein,4,100.0,District of Columbia,1.4,3995
$ grep -n 'J. Stein' presidential_general_election_2016_by_county.csv | grep Democratic
2675:3.0,11001,District of Columbia,Democratic,False,J. Stein,4,100.0,District of Columbia,1.4,3995
Here's the output of a script that shows candidates with more than one party assigned to them. "R. De La Fuente" stands out as another one with a similar issue, being listed as Republican somewhere.
A. Kennedy ['American Shopping', 'Independent', 'Independent_Other', 'U.S. Taxpayers']
C. Keniston ['Independent_Other', 'Veterans']
D. Castle ['Constitution', 'Independent', 'Independent_Other', 'U.S. Taxpayers']
E. McMullin ['Better for America', 'Independent', 'Independent_Other', 'Progressive', 'U.S. Taxpayers']
E. Soltysik ['American Shopping', 'Independent_N']
G. Johnson ['Independent', 'Libertarian']
G. La Riva ['Independent_Other', 'Libertarian', 'Progressive']
J. Hedges ['Independent', 'Progressive']
J. Stein ['Democratic', 'Green', 'Independent', 'Mountain', 'Progressive', 'U.S. Taxpayers']
L. Kahn ['Independent', 'Independent_Other']
L. Kotlikoff ['Independent_Other', 'U.S. Taxpayers']
M. Moorehead ['U.S. Taxpayers', 'Working Class']
M. Smith ['Independent', 'U.S. Taxpayers']
R. De La Fuente ['American', 'Independent', 'Independent_N', 'Progressive', 'Republican', 'U.S. Taxpayers']
T. Hoefling ['American', 'Independent_Other']
I don't deal with datasets often so I don't know if it's okay to request cleanup here when the problem might be in the source. After all there is an unexplained "D" in the tag of jill stein, while other states have "G".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.