Skip to content

Instantly share code, notes, and snippets.

@jacquerie
Last active August 29, 2015 14:03
Show Gist options
  • Save jacquerie/3d6d5b8773ca19aefe4e to your computer and use it in GitHub Desktop.
Save jacquerie/3d6d5b8773ca19aefe4e to your computer and use it in GitHub Desktop.
What would past presidential elections look like if electoral votes were multiplied by percentage of people believing in evolution? Usage: python evolution.py votes-20**.tsv
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import sys
EVOLUTION_DATA = {
"Alabama": 0.51, "Alaska": 0.66, "Arizona": 0.65, "Arkansas": 0.53,
"California": 0.73, "Colorado": 0.69, "Connecticut": 0.77, "Delaware": 0.70,
"Florida": 0.64, "Georgia": 0.60, "Hawaii": 0.71, "Idaho": 0.59, "Illinois": 0.68,
"Indiana": 0.60, "Iowa": 0.62, "Kansas": 0.61, "Kentucky": 0.57, "Louisiana": 0.62,
"Maine": 0.75, "Maryland": 0.73, "Massachusetts": 0.83, "Michigan": 0.65,
"Minnesota": 0.67, "Mississippi": 0.49, "Missouri": 0.60, "Montana": 0.65,
"Nebraska": 0.62, "Nevada": 0.67, "New Hampshire": 0.77, "New Jersey": 0.76,
"New Mexico": 0.67, "New York": 0.79, "North Carolina": 0.61, "North Dakota": 0.59,
"Ohio": 0.64, "Oklahoma": 0.54, "Oregon": 0.71, "Pennsylvania": 0.69,
"Rhode Island": 0.79, "South Carolina": 0.56, "South Dakota": 0.58,
"Tennessee": 0.54, "Texas": 0.60, "Utah": 0.58, "Vermont": 0.81, "Virginia": 0.68,
"Washington": 0.71, "District of Columbia": 0.83, "West Virginia": 0.56,
"Wisconsin": 0.66, "Wyoming": 0.62
}
if __name__ == '__main__':
democrats_ev = republican_ev = 0
with open(sys.argv[1]) as votes_file:
for line in votes_file:
fields = line.split("\t")
weight = EVOLUTION_DATA[fields[0]]
electoral_votes = int(fields[1])
democrats_lost = fields[-3].startswith("−") # Not an ASCII character.
if democrats_lost:
republican_ev += weight * electoral_votes
else:
democrats_ev += weight * electoral_votes
print "Democrats: %f, Republican: %f" % (democrats_ev, republican_ev)
We can make this file beautiful and searchable if this error is corrected: It looks like row 51 should actually have 21 columns, instead of 16 in line 50.
Alabama 9 692,611 41.57% 941,173 56.48% 18,323 1.10% 6,351 0.38% 5,893 0.35% 775 0.05% 447 0.03% 699 0.04% −248,562 −14.92% 1,666,272
Alaska 3 79,004 27.67% 167,398 58.62% 28,747 10.07% 5,192 1.82% 2,636 0.92% 596 0.21% 919 0.32% 1,068 0.37% −88,394 −30.95% 285,560
Arizona 8 685,341 44.73% 781,652 51.02% 45,645 2.98% 12,373 0.81% 110 0.01% 1,120 0.07% 5,775 0.38% −96,311 −6.29% 1,532,016
Arkansas 6 422,768 45.86% 472,940 51.31% 13,421 1.46% 7,358 0.80% 2,781 0.30% 1,415 0.15% 1,098 0.12% −50,172 −5.44% 921,781
California 54 5,861,203 53.45% 4,567,429 41.65% 418,707 3.82% 44,987 0.41% 45,520 0.42% 17,042 0.16% 10,934 0.10% 34 0.00% 1,293,774 11.80% 10,965,856
Colorado 8 738,227 42.39% 883,748 50.75% 91,434 5.25% 10,465 0.60% 12,799 0.73% 1,319 0.08% 2,240 0.13% 1,136 0.07% −145,521 −8.36% 1,741,368
Connecticut 8 816,015 55.91% 561,094 38.44% 64,452 4.42% 4,731 0.32% 3,484 0.24% 9,695 0.66% 40 0.00% 14 0.00% 254,921 17.47% 1,459,525
Delaware 3 180,068 54.96% 137,288 41.90% 8,307 2.54% 777 0.24% 774 0.24% 208 0.06% 107 0.03% 93 0.03% 42,780 13.06% 327,622
District of Columbia 3 171,923 85.16% 18,073 8.95% 10,576 5.24% 669 0.33% 653 0.32% 153,850 76.20% 201,894
Florida 25 2,912,253 48.84% 2,912,790 48.85% 97,488 1.63% 17,484 0.29% 16,415 0.28% 1,371 0.02% 2,281 0.04% 3,028 0.05% −537 −0.01% 5,963,110
Georgia 13 1,116,230 42.98% 1,419,720 54.67% 13,432 0.52% 10,926 0.42% 36,332 1.40% 140 0.01% 24 0.00% −303,490 −11.69% 2,596,804
Hawaii 4 205,286 55.79% 137,845 37.46% 21,623 5.88% 1,071 0.29% 1,477 0.40% 343 0.09% 306 0.08% 67,441 18.33% 367,951
Idaho 4 138,637 27.64% 336,937 67.17% 12,292 2.45% 7,615 1.52% 3,488 0.70% 1,469 0.29% 1,177 0.23% 6 0.00% −198,300 −39.53% 501,621
Illinois 22 2,589,026 54.60% 2,019,421 42.58% 103,759 2.19% 16,106 0.34% 11,623 0.25% 57 0.00% 2,127 0.04% 4 0.00% 569,60 12.01% 4,742,123
Indiana 12 901,980 41.01% 1,245,836 56.65% 18,531 0.84% 16,959 0.77% 15,530 0.71% 200 0.01% 167 0.01% 99 0.00% −343,856 −15.63 2,199,302
Iowa 7 638,517 48.54% 634,373 48.22% 29,374 2.23% 5,731 0.44% 3,209 0.24% 613 0.05% 2,281 0.17% 1,465 0.11% 4,144 0.31% 1,315,563
Kansas 6 399,276 37.24% 622,332 58.04% 36,086 3.37% 7,370 0.69% 4,525 0.42% 1,254 0.12% 1,375 0.13% −223,056 −20.80% 1,072,218
Kentucky 8 638,898 41.37% 872,492 56.50% 23,192 1.50% 4,173 0.27% 2,896 0.19% 923 0.06% 1,533 0.10% 80 0.01% −233,594 −15.13 1,544,187
Louisiana 9 792,344 44.88% 927,871 52.55% 20,473 1.16% 14,356 0.81% 2,951 0.17% 5,483 0.31% 1,075 0.06% 1,103 0.06% −135,527 −7.68% 1,765,656
Maine 4 319,951 49.09% 286,616 43.97% 37,127 5.70% 4,443 0.68% 3,074 0.47% 579 0.09% 27 0.00% 33,335 5.11% 651,817
Maryland 10 1,145,782 56.57% 813,797 40.18% 53,768 2.65% 4,248 0.21% 5,310 0.26% 919 0.05% 176 0.01% 1,480 0.07% 331,985 16.39% 2,025,480
Massachusetts 12 1,616,487 59.80% 878,502 32.50% 173,564 6.42% 11,149 0.41% 16,366 0.61% 2,884 0.11% 4,032 0.15% 737,985 27.30% 2,702,984
Michigan 18 2,170,418 51.28% 1,953,139 46.15% 84,165 1.99% 1,851 0.04% 16,711 0.39% 3,791 0.09% 2,426 0.06% 217,27 5.13% 4,232,501
Minnesota 10 1,168,266 47.91% 1,109,659 45.50% 126,696 5.20% 22,166 0.91% 5,282 0.22% 3,272 0.13% 2,294 0.09% 1,050 0.04% 58,607 2.40% 2,438,685
Mississippi 7 404,614 40.70% 572,844 57.62% 8,122 0.82% 2,265 0.23% 2,009 0.20% 3,267 0.33% 450 0.05% 613 0.06% −168,230 −16.92 994,184
Missouri 11 1,111,138 47.08% 1,189,924 50.42% 38,515 1.63% 9,818 0.42% 7,436 0.32% 1,957 0.08% 1,104 0.05% −78,78 −3.34% 2,359,892
Montana 3 137,126 33.36% 240,178 58.44% 24,437 5.95% 5,697 1.39% 1,718 0.42% 1,155 0.28% 675 0.16% 11 0.00% −103,052 −25.07% 410,997
Nebraska 5 231,780 33.25% 433,862 62.25% 24,540 3.52% 3,646 0.52% 2,245 0.32% 468 0.07% 478 0.07% −202,082 −28.99 697,019
Nevada 4 279,978 45.98% 301,575 49.52% 15,008 2.46% 4,747 0.78% 3,311 0.54% 621 0.10% 415 0.07% 3,315 0.54% −21,597 −3.55% 608,970
New Hampshire 4 266,348 46.80% 273,559 48.07% 22,198 3.90% 2,615 0.46% 2,757 0.48% 328 0.06% 55 0.01% 1,221 0.21% −7,211 −1.27% 569,081
New Jersey 15 1,788,850 56.13% 1,284,173 40.29% 94,554 2.97% 6,989 0.22% 6,312 0.20% 1,409 0.04% 2,215 0.07% 2,724 0.09% 504,67 15.83% 3,187,226
New Mexico 5 286,783 47.91% 286,417 47.85% 21,251 3.55% 1,392 0.23% 2,058 0.34% 343 0.06% 361 0.06% 366 0.06% 598,605
New York 33 4,107,697 60.21% 2,403,374 35.23% 244,030 3.58% 31,599 0.46% 7,649 0.11% 1,498 0.02% 24,361 0.36% 1,791 0.03% 1,704,323 24.98% 6,821,999
North Carolina 14 1,257,692 43.20% 1,631,163 56.03% 8,874 0.30% 12,307 0.42% 1,226 0.04% −373,471 −12.83% 2,911,262
North Dakota 3 95,284 33.06% 174,852 60.66% 9,486 3.29% 7,288 2.53% 660 0.23% 373 0.13% 313 0.11% −79,568 −27.60% 288,256
Ohio 21 2,186,190 46.46% 2,351,209 49.97% 117,857 2.50% 26,724 0.57% 13,475 0.29% 3,823 0.08% 6,169 0.13% 10 0.00% −165,019 −3.51% 4,705,457
Oklahoma 8 474,276 38.43% 744,337 60.31% 9,014 0.73% 6,602 0.53% −270,061 −21.88 1,234,229
Oregon 7 720,342 46.96% 713,577 46.52% 77,357 5.04% 7,063 0.46% 7,447 0.49% 2,189 0.14% 2,574 0.17% 3,419 0.22% 6,765 0.44% 1,533,968
Pennsylvania 23 2,485,967 50.60% 2,281,127 46.43% 103,392 2.10% 16,023 0.33% 11,248 0.23% 14,428 0.29% 934 0.02% 204,84 4.17% 4,913,119
Rhode Island 4 249,508 60.99% 130,555 31.91% 25,052 6.12% 2,273 0.56% 742 0.18% 97 0.02% 271 0.07% 614 0.15% 118,953 29.08% 409,112
South Carolina 8 565,561 40.90% 785,937 56.84% 20,200 1.46% 3,519 0.25% 4,876 0.35% 1,682 0.12% 942 0.07% −220,376 −15.94 1,382,717
South Dakota 3 118,804 37.56% 190,700 60.30% 3,322 1.05% 1,662 0.53% 1,781 0.56% −71,896 −22.73% 316,269
Tennessee 11 981,720 47.28% 1,061,949 51.15% 19,781 0.95% 4,250 0.20% 4,284 0.21% 1,015 0.05% 613 0.03% 2,569 0.12% −80,229 −3.86% 2,076,181
Texas 32 2,433,746 37.98% 3,799,639 59.30% 137,994 2.15% 12,394 0.19% 23,160 0.36% 567 0.01% 137 0.00% −1,365,893 −21.32% 6,407,637
Utah 5 203,053 26.34% 515,096 66.83% 35,850 4.65% 9,319 1.21% 3,616 0.47% 2,709 0.35% 763 0.10% 348 0.05% −312,043 −40.49% 770,754
Vermont 3 149,022 50.63% 119,775 40.70% 20,374 6.92% 2,192 0.74% 784 0.27% 153 0.05% 219 0.07% 1,789 0.61% 29,247 9.94% 294,308
Virginia 13 1,217,290 44.44% 1,437,490 52.47% 59,398 2.17% 5,455 0.20% 15,198 0.55% 1,809 0.07% 171 0.01% 2,636 0.10% −220,200 −8.04% 2,739,447
Washington 11 1,247,652 50.16% 1,108,864 44.58% 103,002 4.14% 7,171 0.29% 13,135 0.53% 1,989 0.08% 2,927 0.12% 2,693 0.11% 138,78 5.58% 2,487,433
West Virginia 5 295,497 45.59% 336,475 51.92% 10,680 1.65% 3,169 0.49% 1,912 0.30% 23 0.00% 367 0.06% 1 0.00% −40,978 −6.32% 648,124
Wisconsin 11 1,242,987 47.83% 1,237,279 47.61% 94,070 3.62% 11,471 0.44% 6,640 0.26% 2,042 0.08% 853 0.03% 3,265 0.13% 5,708 0.22% 2,598,607
Wyoming 3 60,481 27.70% 147,947 67.76% 4,625 2.12% 2,724 1.25% 1,443 0.66% 720 0.33% 411 0.19
Alabama 9 1,176,394 62.46% 693,933 36.84% 6,701 0.36% 3,529 0.19% 1,994 0.11% 0 0.00% 898 0.05% 482,461 25.62% 1,883,449
Alaska 3 190,889 61.07% 111,025 35.52% 5,069 1.62% 1,675 0.54% 2,092 0.67% 1,058 0.34% 790 0.25% 79,864 25.55% 312,598
Arizona 10 1,104,294 54.87% 893,524 44.40% 2,773 0.14% 11,856 0.59% 0 0.00% 138 0.01% 0 0.00% 210,770 10.47% 2,012,585
Arkansas 6 572,898 54.31% 469,953 44.55% 6,171 0.58% 2,352 0.22% 2,083 0.20% 1,488 0.14% 0 0.00% 102,945 9.76% 1,054,945
California 55 5,509,826 44.36% 6,745,485 54.31% 20,714 0.17% 50,165 0.40% 26,645 0.21% 40,771 0.33% 27,747 0.22% −1,235,659 −9.95% 12,421,353
Colorado 9 1,101,255 51.69% 1,001,732 47.02% 12,718 0.60% 7,664 0.36% 2,562 0.12% 1,591 0.07% 2,808 0.13% 99,523 4.67% 2,130,330
Connecticut 7 693,826 43.95% 857,488 54.31% 12,969 0.82% 3,367 0.21% 1,543 0.10% 9,564 0.61% 12 0.00% −163,662 −10.37% 1,578,769
Delaware 3 171,660 45.75% 200,152 53.35% 2,153 0.57% 586 0.16% 289 0.08% 250 0.07% 100 0.03% −28,492 −7.59% 375,190
District of Columbia 3 21,256 9.34% 202,970 89.18% 1,485 0.65% 502 0.22% 0 0.00% 737 0.32% 636 0.28% −181,714 −79.84% 227,586
Florida 27 3,964,522 52.10% 3,583,544 47.09% 32,971 0.43% 11,996 0.16% 6,626 0.09% 3,917 0.05% 6,234 0.08% 380,978 5.01% 7,609,810
Georgia 15 1,914,254 57.97% 1,366,149 41.37% 2,231 0.07% 18,387 0.56% 580 0.02% 228 0.01% 46 0.00% 548,105 16.60% 3,301,875
Hawaii 4 194,191 45.26% 231,708 54.01% 0 0.00% 1,377 0.32% 0 0.00% 1,737 0.40% 0 0.00% −37,517 −8.74% 429,013
Idaho 4 409,235 68.38% 181,098 30.26% 1,115 0.19% 3,844 0.64% 3,084 0.52% 58 0.01% 13 0.00% 228,137 38.12% 598,447
Illinois 21 2,345,946 44.48% 2,891,550 54.82% 3,571 0.07% 32,442 0.62% 440 0.01% 241 0.00% 132 0.00% −545,604 −10.34 5,274,322
Indiana 11 1,479,438 59.94% 969,011 39.26% 1,328 0.05% 18,058 0.73% 0 0.00% 102 0.00% 65 0.00% 510,427 20.68% 2,468,002
Iowa 7 751,957 49.90% 741,898 49.23% 5,973 0.40% 2,992 0.20% 1,304 0.09% 1,141 0.08% 1,643 0.11% 10,059 0.67% 1,506,908
Kansas 6 736,456 62.00% 434,993 36.62% 9,348 0.79% 4,013 0.34% 2,899 0.24% 33 0.00% 14 0.00% 301,463 25.38% 1,187,756
Kentucky 8 1,069,439 59.55% 712,733 39.69% 8,856 0.49% 2,619 0.15% 2,213 0.12% 0 0.00% 22 0.00% 356,706 19.86% 1,795,882
Louisiana 9 1,102,169 56.72% 820,299 42.22% 7,032 0.36% 2,781 0.14% 5,203 0.27% 1,276 0.07% 4,346 0.22% 281,870 14.51% 1,943,106
Maine 4 330,201 44.58% 396,842 53.57% 8,069 1.09% 1,965 0.27% 735 0.10% 2,936 0.40% 4 0.00% −66,641 −9.00% 740,752
Maryland 10 1,024,703 42.93% 1,334,493 55.91% 11,854 0.50% 6,094 0.26% 3,421 0.14% 3,632 0.15% 2,481 0.10% −309,790 −12.98 2,386,678
Massachusetts 12 1,071,109 36.78% 1,803,800 61.94% 4,806 0.17% 15,022 0.52% 0 0.00% 10,623 0.36% 7,028 0.24% −732,691 −25.16 2,912,388
Michigan 17 2,313,746 47.81% 2,479,183 51.23% 24,035 0.50% 10,552 0.22% 4,980 0.10% 5,325 0.11% 1,431 0.03% −165,437 −3.42% 4,839,252
Minnesota 10 1,346,695 47.61% 1,445,014 51.09% 18,683 0.66% 4,639 0.16% 3,074 0.11% 4,408 0.16% 5,874 0.21% −98,319 −3.48% 2,828,387
Mississippi 6 684,981 59.45% 458,094 39.76% 3,177 0.28% 1,793 0.16% 1,759 0.15% 1,073 0.09% 1,268 0.11% 226,887 19.69% 1,152,145
Missouri 11 1,455,713 53.30% 1,259,171 46.10% 1,294 0.05% 9,831 0.36% 5,355 0.20% 0 0.00% 0 0.00% 196,542 7.20% 2,731,364
Montana 3 266,063 59.07% 173,710 38.56% 6,168 1.37% 1,733 0.38% 1,764 0.39% 996 0.22% 11 0.00% 92,353 20.50% 450,445
Nebraska 5 512,814 65.90% 254,328 32.68% 5,698 0.73% 2,041 0.26% 1,314 0.17% 978 0.13% 1,013 0.13% 258,486 33.22% 778,186
Nevada 5 418,690 50.47% 397,190 47.88% 4,838 0.58% 3,176 0.38% 1,152 0.14% 853 0.10% 3,688 0.44% 21,500 2.59% 829,587
New Hampshire 4 331,237 48.87% 340,511 50.24% 4,479 0.66% 372 0.05% 161 0.02% 0 0.00% 978 0.14% −9,274 −1.37% 677,738
New Jersey 15 1,670,003 46.24% 1,911,430 52.92% 19,418 0.54% 4,514 0.12% 2,750 0.08% 1,807 0.05% 1,769 0.05% −241,427 −6.68% 3,611,691
New Mexico 5 376,930 49.84% 370,942 49.05% 4,053 0.54% 2,382 0.31% 771 0.10% 1,226 0.16% 0 0.00% 5,988 0.79% 756,304
New York 31 2,962,567 40.08% 4,314,280 58.37% 99,873 1.35% 11,607 0.16% 207 0.00% 87 0.00% 2,415 0.03% −1,351,713 −18.29 7,391,036
North Carolina 15 1,961,166 56.02% 1,525,849 43.58% 1,805 0.05% 11,731 0.34% 0 0.00% 108 0.00% 348 0.01% 435,317 12.43% 3,501,007
North Dakota 3 196,651 62.86% 111,052 35.50% 3,756 1.20% 851 0.27% 514 0.16% 0 0.00% 9 0.00% 85,599 27.36% 312,833
Ohio 20 2,859,768 50.81% 2,741,167 48.71% 0 0.00% 14,676 0.26% 11,939 0.21% 192 0.00% 166 0.00% 118,601 2.11% 5,627,908
Oklahoma 7 959,792 65.57% 503,966 34.43% 0 0.00% 0 0.00% 0 0.00% 0 0.00% 0 0.00% 455,826 31.14% 1,463,758
Oregon 7 866,831 47.19% 943,163 51.35% 0 0.00% 7,260 0.40% 5,257 0.29% 5,315 0.29% 8,956 0.49% −76,332 −4.16% 1,836,782
Pennsylvania 21 2,793,847 48.42% 2,938,095 50.92% 2,656 0.05% 21,185 0.37% 6,318 0.11% 6,319 0.11% 1,170 0.02% −144,248 −2.50% 5,769,590
Rhode Island 4 169,046 38.67% 259,765 59.42% 4,651 1.06% 907 0.21% 339 0.08% 1,333 0.30% 1,093 0.25% −90,719 −20.75% 437,134
South Carolina 8 937,974 57.98% 661,699 40.90% 5,520 0.34% 3,608 0.22% 5,317 0.33% 1,488 0.09% 2,124 0.13% 276,275 17.08% 1,617,730
South Dakota 3 232,584 59.91% 149,244 38.44% 4,320 1.11% 964 0.25% 1,103 0.28% 0 0.00% 0 0.00% 83,340 21.47% 388,215
Tennessee 11 1,384,375 56.80% 1,036,477 42.53% 8,992 0.37% 4,866 0.20% 2,570 0.11% 33 0.00% 6 0.00% 347,898 14.27% 2,437,319
Texas 34 4,526,917 61.09% 2,832,704 38.22% 9,159 0.12% 38,787 0.52% 1,636 0.02% 1,014 0.01% 548 0.01% 1,694,213 22.86% 7,410,765
Utah 5 663,742 71.54% 241,199 26.00% 11,305 1.22% 3,375 0.36% 6,841 0.74% 39 0.00% 1,343 0.14% 422,543 45.54% 927,844
Vermont 3 121,180 38.80% 184,067 58.94% 4,494 1.44% 1,102 0.35% 0 0.00% 0 0.00% 1,466 0.47% −62,887 −20.14% 312,309
Virginia 13 1,716,959 53.68% 1,454,742 45.48% 2,393 0.07% 11,032 0.34% 10,161 0.32% 104 0.00% 2,976 0.09% 262,217 8.20% 3,198,367
Washington 11 1,304,894 45.64% 1,510,201 52.82% 23,283 0.81% 11,955 0.42% 3,922 0.14% 2,974 0.10% 1,855 0.06% −205,307 −7.18% 2,859,084
West Virginia 5 423,778 56.06% 326,541 43.20% 4,063 0.54% 1,405 0.19% 82 0.01% 5 0.00% 13 0.00% 97,237 12.86% 755,887
Wisconsin 10 1,478,120 49.32% 1,489,504 49.70% 16,390 0.55% 6,464 0.22% 0 0.00% 2,661 0.09% 3,868 0.13% −11,384 −0.38% 2,997,007
Wyoming 3 167,629 68.86% 70,776 29.07% 2,741 1.13% 1,171 0.48% 631 0.26% 0 0.00% 480 0.20% 96,853 39.79% 243,428
Alabama 9 795,696 38.36% 1,255,925 60.55% 12,328 0.59% 3,397 0.16% 6,992 0.34% −460,229 −22.19% 2,074,338
Alaska 3 122,640 40.81% 164,676 54.80% 7,392 2.46% 2,917 0.97% 2,870 0.96% −42,036 −13.99% 300,495
Arizona 11 1,025,232 44.59% 1,233,654 53.65% 32,100 1.40% 7,816 0.34% 452 0.02% −208,422 −9.06% 2,299,254
Arkansas 6 394,409 36.88% 647,744 60.57% 16,276 1.52% 9,305 0.87% 1,734 0.16% −253,335 −23.69% 1,069,468
California 55 7,854,285 60.24% 4,839,958 37.12% 143,221 1.10% 85,638 0.66% 115,445 0.89% 3,014,327 23.12% 13,038,547
Colorado 9 1,323,101 51.49% 1,185,243 46.13% 35,545 1.38% 7,508 0.29% 18,123 0.71% 137,858 5.37% 2,569,520
Connecticut 7 905,083 58.06% 634,892 40.73% 12,580 0.81% 863 0.06% 5,542 0.36% 270,191 17.33% 1,558,960
Delaware 3 242,584 58.61% 165,484 39.98% 3,882 0.94% 1,940 0.47% 31 0.01% 77,100 18.63% 413,921
District of Columbia 3 267,070 90.91% 21,381 7.28% 2,083 0.71% 2,458 0.84% 772 0.26% 245,689 83.63% 293,764
Florida 29 4,237,756 50.01% 4,163,447 49.13% 44,726 0.53% 8,947 0.11% 19,303 0.23% 74,309 0.88% 8,474,179
Georgia 16 1,773,827 45.48% 2,078,688 53.30% 45,324 1.16% 1,516 0.04% 695 0.02% −304,861 −7.82% 3,900,050
Hawaii 4 306,658 70.55% 121,015 27.84% 3,840 0.88% 3,184 0.73% 0 0.00% 185,643 42.71% 434,697
Idaho 4 212,787 32.62% 420,911 64.53% 9,453 1.45% 4,402 0.67% 4,721 0.72% −208,124 −31.91% 652,274
Illinois 20 3,019,512 57.60% 2,135,216 40.73% 56,229 1.07% 30,222 0.58% 835 0.02% 884,296 16.87% 5,242,014
Indiana 11 1,152,887 43.93% 1,420,543 54.13% 50,111 1.91% 625 0.02% 368 0.01% −267,656 −10.20% 2,624,534
Iowa 6 822,544 51.99% 730,617 46.18% 12,926 0.82% 3,769 0.24% 12,324 0.78% 91,927 5.81% 1,582,180
Kansas 6 440,726 37.99% 692,634 59.71% 20,456 1.76% 714 0.06% 5,441 0.47% −251,908 −21.72% 1,159,971
Kentucky 8 679,370 37.80% 1,087,190 60.49% 17,063 0.95% 6,337 0.35% 7,252 0.40% −407,820 −22.69% 1,797,212
Louisiana 8 809,141 40.58% 1,152,262 57.78% 18,157 0.91% 6,978 0.35% 7,527 0.38% −343,121 −17.21% 1,994,065
Maine 4 401,306 56.27% 292,276 40.98% 9,352 1.31% 8,119 1.14% 2,127 0.30% 109,030 15.29% 713,180
Maryland 10 1,677,844 61.97% 971,869 35.90% 30,195 1.12% 17,110 0.63% 10,309 0.38% 705,975 26.08% 2,707,327
Massachusetts 11 1,921,290 60.65% 1,188,314 37.51% 30,920 0.98% 20,691 0.65% 6,552 0.21% 732,976 23.14% 3,167,767
Michigan 16 2,564,569 54.21% 2,115,256 44.71% 7,774 0.16% 21,897 0.46% 21,465 0.45% 449,313 9.50% 4,730,961
Minnesota 10 1,546,167 52.65% 1,320,225 44.96% 35,098 1.20% 13,023 0.44% 22,048 0.75% 225,942 7.69% 2,936,561
Mississippi 6 562,949 43.79% 710,746 55.29% 6,676 0.52% 1,588 0.12% 3,625 0.28% −147,797 −11.50% 1,285,584
Missouri 10 1,223,796 44.38% 1,482,440 53.76% 43,151 1.56% 0.00% 7,936 0.29% −258,644 −9.38% 2,757,323
Montana 3 201,839 41.70% 267,928 55.35% 14,165 2.93% 0 0.00% 116 0.02% −66,089 −13.65% 484,048
Nebraska 5 302,081 38.03% 475,064 59.80% 11,109 1.40% 0 0.00% 6,125 0.77% −172,983 −21.78% 794,379
Nevada 6 531,373 52.36% 463,567 45.68% 10,968 1.08% 0 0.00% 9,010 0.89% 67,806 6.68% 1,014,918
New Hampshire 4 369,561 51.98% 329,918 46.40% 8,212 1.16% 324 0.05% 2,957 0.42% 39,643 5.58% 710,972
New Jersey 14 2,125,101 58.38% 1,477,568 40.59% 21,045 0.58% 9,888 0.27% 6,690 0.18% 647,533 17.81% 3,640,292
New Mexico 5 415,335 52.99% 335,788 42.84% 27,788 3.55% 2,691 0.34% 2,156 0.28% 79,547 10.15% 783,758
New York 29 4,485,741 63.35% 2,490,431 35.17% 47,256 0.67% 39,982 0.56% 17,749 0.25% 1,995,310 28.18% 7,081,159
North Carolina 15 2,178,391 48.35% 2,270,395 50.39% 44,515 0.99% 0.00% 12,071 0.27% −92,004 −2.04% 4,505,372
North Dakota 3 124,827 38.69% 188,163 58.32% 5,231 1.62% 1,361 0.42% 3,045 0.94% −63,336 −19.63% 322,627
Ohio 18 2,827,710 50.67% 2,661,433 47.69% 49,493 0.89% 18,574 0.33% 23,630 0.42% 166,277 2.98% 5,580,840
Oklahoma 7 443,547 33.23% 891,325 66.77% 0 0.00% 0 0.00% 0.00% −447,778 −33.54% 1,334,872
Oregon 7 970,488 54.24% 754,175 42.15% 24,089 1.35% 19,427 1.09% 21,091 1.18% 216,313 12.09% 1,789,270
Pennsylvania 20 2,990,274 51.97% 2,680,434 46.59% 49,991 0.87% 21,341 0.37% 11,630 0.20% 309,840 5.39% 5,753,670
Rhode Island 4 279,677 62.70% 157,204 35.24% 4,388 0.98% 2,421 0.54% 2,359 0.53% 122,473 27.46% 446,049
South Carolina 9 865,941 44.09% 1,071,645 54.56% 16,321 0.83% 5,446 0.28% 4,765 0.24% −205,704 −10.47% 1,964,118
South Dakota 3 145,039 39.87% 210,610 57.89% 5,795 1.59% 0 0.00% 2,371 0.65% −65,571 −18.02% 363,815
Tennessee 11 960,709 39.08% 1,462,330 59.48% 18,623 0.76% 6,515 0.26% 10,400 0.42% −501,621 −20.40% 2,458,577
Texas 38 3,308,124 41.38% 4,569,843 57.17% 88,580 1.11% 24,657 0.31% 2,647 0.03% −1,261,719 −15.78% 7,993,851
Utah 6 251,813 24.75% 740,600 72.79% 12,572 1.24% 3,817 0.38% 8,638 0.85% −488,787 −48.04% 1,017,440
Vermont 3 199,239 66.57% 92,698 30.97% 3,487 1.17% 594 0.20% 3,272 1.09% 106,541 35.60% 299,290
Virginia 13 1,971,820 51.16% 1,822,522 47.28% 31,216 0.81% 8,627 0.22% 20,304 0.53% 149,298 3.87% 3,854,489
Washington 12 1,755,396 56.16% 1,290,670 41.29% 42,202 1.35% 20,928 0.67% 16,320 0.52% 464,726 14.87% 3,125,516
West Virginia 5 238,269 35.54% 417,655 62.30% 6,302 0.94% 4,406 0.66% 3,806 0.57% −179,386 −26.76% 670,438
Wisconsin 10 1,620,985 52.83% 1,407,966 45.89% 20,439 0.67% 7,665 0.25% 11,379 0.37% 213,019 6.94% 3,068,434
Wyoming 3 69,286 27.82% 170,962 68.64% 5,326 2.14% 0 0.00% 3,487 1.40% −101,676 −40.82% 249,061
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment