diff --git a/collect.py b/collect.py new file mode 100644 index 0000000..513a7d5 --- /dev/null +++ b/collect.py @@ -0,0 +1,151 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Created on Tue Jun 6 11:40:07 2023 + +@author: michael +""" + +import os +import tweepy +import pandas as pd +import numpy as np +import glob + +## Setup directories +# WD Michael +wd = "/home/michael/Documents/PS/Data/collectTweets/" + +# WD Server +# wd = "/home/yunohost.multimedia/polsoc/Politics & Society/TweetCollection" + +# WD Josie +# wd = "/home/michael/Documents/PS/Data/" + +# WD Sam +# wd = "/home/michael/Documents/PS/Data/" + +# Tweet-datafile directory +td = "data/tweets/" + +os.chdir(wd) + +## Setup Api-connection +bearer_token = "AAAAAAAAAAAAAAAAAAAAAMVDlQEAAAAAal9f5uZrM12CVPA4f4jr4mGH5Oc%3DuTg1Vd0YKYMwraA7ibX6LiGyd337OXkm3JwudEX7vatruswmoc" +client = tweepy.Client(bearer_token, return_type = dict, wait_on_rate_limit = True) + +# Define time period of interest +start_time = '2020-01-01T00:00:00Z' +end_time = '2023-01-03T00:00:00Z' + +# gather keywords @chenTrackingSocialMedia2020 +# line80 ff: lamsalCoronavirusCOVID19Tweets2020 +# Initialize the keywords list +keywords = [] + +# Read the keywords from a file +with open("data/keywords.txt", "r") as file: + lines = file.readlines() + for line in lines: + keyword = line.strip() # Remove the newline character + keywords.append(keyword) + +tweet_fields = [ + "id", + "text", + "attachments", + "author_id", + "context_annotations", + "conversation_id", + "created_at", + "entities", + "geo", + "lang", + "possibly_sensitive", + "public_metrics", + "referenced_tweets", + "reply_settings", + "source", + "withheld", + ] + +# Get accounts & alt-accounts from Senators-Datafile +accounts = pd.read_csv("data/senators-raw.csv")["twitter_handle"].tolist() +alt_accounts = pd.read_csv("data/senators-raw.csv")["alt_handle"].tolist() +print(accounts) +print(alt_accounts) + +for handle in accounts: + query = "from:"+ handle +" -is:retweet" + + tweetlist = [] + for tweet in tweepy.Paginator(client.search_all_tweets, + query=query, + tweet_fields = tweet_fields, + start_time=start_time, + end_time=end_time, + max_results=100).flatten(50): + tweetlist.append(tweet) + all_tweets = pd.DataFrame(tweetlist) + all_tweets = all_tweets.join(pd.DataFrame(all_tweets.pop("public_metrics").tolist())) + + all_tweets['handle'] = handle + + ## Extract referenced_tweet info from column + # Create empty columns to store the extracted information + all_tweets['referenced_tweet_type'] = None + all_tweets['referenced_tweet_id'] = None + + # Iterate over each row + for index, row in all_tweets.iterrows(): + referenced_tweets = row['referenced_tweets'] + + # Check if referenced_tweets is not empty (array length > 0) + if isinstance(referenced_tweets, list) and len(referenced_tweets) > 0: + referenced_tweet = referenced_tweets[0] + referenced_tweet_type = referenced_tweet['type'] + referenced_tweet_id = referenced_tweet['id'] + + # Assign the extracted values to the new columns + all_tweets.at[index, 'referenced_tweet_type'] = referenced_tweet_type + all_tweets.at[index, 'referenced_tweet_id'] = referenced_tweet_id + + ## Check if tweet contains keyword + # Create a new column to store the keyword match + all_tweets['contains_keyword'] = (all_tweets['text'].str.findall('|'.join(keywords)) + .str.join(',') + .replace('', 'none')) + + ## Save to versions of the dataset, one with all fields, one without dict fields + csv_path = td + handle + ".csv" + csv_path2 = td + handle + "-LONG.csv" + all_tweets.to_csv(csv_path2) + all_tweets = all_tweets.drop(["context_annotations","entities","referenced_tweets"], axis=1) + all_tweets.to_csv(csv_path) + print("Fetched tweets for:") + print(handle) + +# Merge CSV-Files +# (it would also have been a possibility to build a dataframe with all senators' tweets but i found the other way around more useful) +path_to_tweetdfs = wd + td +os.chdir(path_to_tweetdfs) +tweetfiles = glob.glob('*.{}'.format("csv")) + +print(tweetfiles) + +# save merged csv as two files +df_all_senators = pd.DataFrame() +df_all_senators_long = pd.DataFrame() +for file in tweetfiles: + if "LONG" in file: + df = pd.read_csv(file) + df_all_senators_long = pd.concat([df, df_all_senators_long]) + else: + df = pd.read_csv(file) + df_all_senators = pd.concat([df, df_all_senators]) +csv_path = td + "ALL-SENATORS.csv" +csv_path2 = td + "ALL-SENATORS-LONG-LONG.csv" +df_all_senators.to_csv(csv_path) +df_all_senators_long.to_csv(csv_path2) + +os.chdir(wd) \ No newline at end of file diff --git a/data/keywords.txt b/data/keywords.txt new file mode 100644 index 0000000..01fe9ba --- /dev/null +++ b/data/keywords.txt @@ -0,0 +1,173 @@ +Coronavirus +Koronavirus +Corona +CDC +Wuhancoronavirus +Wuhanlockdown +Ncov +Wuhan +N95 +Kungflu +Epidemic +outbreak +Sinophobia +China +covid-19 +corona virus +covid +covid19 +sars-cov-2 +COVIDー19 +COVD +pandemic +coronapocalypse +canceleverything +Coronials +SocialDistancingNow +Social Distancing +SocialDistancing +panicbuy +panic buy +panicbuying +panic buying +14DayQuarantine +DuringMy14DayQuarantine +panic shop +panic shopping +panicshop +InMyQuarantineSurvivalKit +panic-buy +panic-shop +coronakindness +quarantinelife +chinese virus +chinesevirus +stayhomechallenge +stay home challenge +sflockdown +DontBeASpreader +lockdown +lock down +shelteringinplace +sheltering in place +staysafestayhome +stay safe stay home +trumppandemic +trump pandemic +flattenthecurve +flatten the curve +china virus +chinavirus +quarentinelife +PPEshortage +saferathome +stayathome +stay at home +stay home +stayhome +GetMePPE +covidiot +epitwitter +pandemie +wear a mask +wearamask +kung flu +covididiot +COVID__19 +omicron +variant +vaccine +travel ban +corona +corona +coronavirus +coronavirus +covid +covid +covid19 +covid19 +covid-19 +covid-19 +sarscov2 +sarscov2 +sars cov2 +sars cov 2 +covid_19 +covid_19 +ncov +ncov +ncov2019 +ncov2019 +2019-ncov +2019-ncov +pandemic +pandemic 2019ncov +2019ncov +quarantine +quarantine +flatten the curve +flattening the curve +flatteningthecurve +flattenthecurve +hand sanitizer +handsanitizer +lockdown +lockdown +social distancing +socialdistancing +work from home +workfromhome +working from home +workingfromhome +ppe +n95 +ppe +n95 +covidiots +covidiots +herd immunity +herdimmunity +pneumonia +pneumonia +chinese virus +chinesevirus +wuhan virus +wuhanvirus +kung flu +kungflu +wearamask +wearamask +wear a mask +vaccine +vaccines +vaccine +vaccines +corona vaccine +corona vaccines +coronavaccine +coronavaccines +face shield +faceshield +face shields +faceshields +health worker +healthworker +health workers +healthworkers +stayhomestaysafe +coronaupdate +frontlineheroes +coronawarriors +homeschool +homeschooling +hometasking +masks4all +wfh +wash ur hands +wash your hands +washurhands +washyourhands +stayathome +stayhome +selfisolating +self isolating \ No newline at end of file diff --git a/data/senators-raw.csv b/data/senators-raw.csv new file mode 100644 index 0000000..7bfb9c9 --- /dev/null +++ b/data/senators-raw.csv @@ -0,0 +1,113 @@ +name,id,state,state_short,party,class,website_url,twitter_url,twitter_handle,start_serving,end_serving,not_in_office,time_in_office,last_senate,ideology,date_of_birth,bioguide_link,female, ,edu_level,edu_information,occup_level,alt_account,alt_handle,alt_handle,next_closest_share,election_year,share_of_votes_source, +"Alexander, Andrew L., Jr.",1,Tennessee,TN,Republican,,N/A,https://twitter.com/SenAlexander,SenAlexander,01/07/2003,01/03/2021,1,18.0027397260274,116,0.681815808318192,07/03/1940,https://bioguide.congress.gov/search/bio/A000360,0,White,8,J.D.; New York Univeristy; 1965,lawyer ,https://twitter.com/LamarAlexander ,LamarAlexander ,61.9,31.8,2014,https://www.politico.com/2014-election/general/results/map/senate/, +"Enzi, Mike",2,Wyoming,WY,Republican,,N/A,https://twitter.com/senatorenzi?lang=zh-Hant ,SenatorEnzi,01/03/1997,01/03/2021,1,24,116,0.719285383539398,02/01/1944,https://bioguide.congress.gov/search/bio/E000285,0,White,7,M.B.A.; Retail Marketing; Denver University; 1968,Accountant,N/A,,72.3,17.6,2014,https://www.politico.com/2014-election/general/results/map/senate/, +"Gardner, Cory",3,Colorado,CO,Republican,,N/A,https://twitter.com/CoryGardner,CoryGardner,01/06/2015,01/03/2021,1,5.9972602739726,116,0.719285383539398,08/22/1974,https://bioguide.congress.gov/search/bio/G000562,0,White,8,"J.D.; University of Colorado, Boulder; 2001",Attorney,https://twitter.com/corygardner,corygardner,48.5,46,2014,https://www.politico.com/2014-election/general/results/map/senate/, +"Harris, Kamala",4,California ,CA,Democratic,,N/A,https://twitter.com/VP,VP,01/03/2017,01/18/2021,1,4.04383561643836,116,0.0213759569468058,10/20/1964,https://bioguide.congress.gov/search/bio/H001075,1,African-American; Asian-American,8,J.D.; University of California; 1989,Attorney,https://twitter.com/KamalaHarris,,62.4,37.6,2016,https://www.politico.com/2016-election/results/map/senate/, +"Isakson, John",5,Georgia,GA,Republican,,N/A,https://twitter.com/SenatorIsakson ,SenatorIsakson,01/03/2005,12/31/2019,1,14,116,,12/28/1944,https://bioguide.congress.gov/search/bio/I000055,0,White,6,"University of Georgia, Athens; 1966",Businessman ,N/A,,55,40.8,2016,https://www.politico.com/2016-election/results/map/senate/, +"Jones, Gordon Douglas",6,Alabama,AL,Democratic,,N/A,https://twitter.com/DougJones,DougJones,01/03/2018,01/03/2021,1,3.0027397260274,116,0.632885678298333,05/04/1954,https://bioguide.congress.gov/search/bio/J000300/,0,White,8,"J.D.; Samford University, Cumberland School of Law; 1979",Attorney,N/A,,49.9,48.4,2017,https://www.nytimes.com/elections/results/alabama-senate-special-election-roy-moore-doug-jones,special election to replace Jeff Sessions +"Loeffler, Kelly",7,Georgia,GA,Republican,,N/A,https://twitter.com/KLoeffler,KLoeffler,01/06/2020,01/20/2021,1,1.04109589041096,116,0.904293903291947,11/27/1970,https://bioguide.congress.gov/search/bio/L000594,1,White,7,M.B.A.; Internationla Finance and Marketing; DePaul University Chicago; 1999,Busineswoman,https://twitter.com/senatorloeffler?lang=de ,,N/A,N/A,2020,,Appointed in 2019 after the resignation of Johnny Isakson but lost the 2020 election +"McSally, Martha",8,Arizona,AZ,Republican,,N/A,https://twitter.com/MarthaMcSallyAZ,MarthaMcSallyAZ,01/03/2015,01/03/2019,1,1,116,,03/22/1966,https://bioguide.congress.gov/search/bio/M001197,1,White,7,M.P.P.; John F. Kennedy School of Government,former military pilot,https://twitter.com/marthamcsally?lang=de ,,N/A,N/A,2020,https://eu.azcentral.com/story/news/politics/arizona/2018/12/18/martha-mcsally-named-doug-ducey-kyl-mccain-arizona-senate-seat-lost-sinema/2277884002/,appointed in 2018 after death of John McCain but lot 2020 election +"Perdue, David",9,Georgia,GA,Republican,,N/A,https://twitter.com/DavidPerdueGA,DavidPerdueGA,01/06/2015,01/03/2021,1,5.9972602739726,116,0.914979462126755,12/10/1949,https://bioguide.congress.gov/search/bio/P000612,0,White,7,M.S.; Georgia Institute of Technology; 1976,Management Consultant,https://twitter.com/sendavidperdue,,53,45.1,2014,https://www.politico.com/2014-election/general/results/map/senate/, +"Roberts, Charles Patrick",10,Kansas,KS,Republican,,N/A,https://twitter.com/SenPatRoberts,SenPatRoberts,01/07/1997,01/03/2021,1,24.0054794520548,116,0.822995787870405,04/20/1936,https://bioguide.congress.gov/search/bio/R000307,0,White,6,"B.A.; Kansas State university, Manhattan; 1958",Journalist,https://twitter.com/PatRoberts,,53.3,42.5,2014,https://voterportal.sos.la.gov/static/2016-11-08/resultsRace/Congressional, +"Udall, Tom",11,New Mexico,NM,Democratic,,N/A,https://twitter.com/SenatorTomUdall,SenatorTomUdall,01/06/2009,01/03/2021,1,12,116,0.259828450248573,05/18/1948,https://bioguide.congress.gov/search/bio/U000039,0,White,8,"J.D.; University of New Mexico School of Law, Albuquerque, N.M.; 1977",lawyer ,https://twitter.com/tomudall,,55.4,44.6,2014,https://www.politico.com/2014-election/general/results/map/senate/, +"Baldwin, Tammy",12,Wisconsin,WI,Democratic,I,https://www.baldwin.senate.gov/,https://twitter.com/SenatorBaldwin,SenatorBaldwin,01/03/2013,12/31/2022,0,9.9972602739726,117,0.176999238019796,02/11/1962,https://bioguide.congress.gov/search/bio/B001230,1,White,8,"J.D.; University of Wisconsin, Madison; 1989",lawyer ,https://twitter.com/tammybaldwin,,55.4,44.6,2018,https://edition.cnn.com/election/2018/results, +"Barrasso, John",13,Wyoming,WY,Republican,I,https://www.barrasso.senate.gov/,https://twitter.com/SenJohnBarrasso,SenJohnBarrasso,06/22/2007,12/31/2022,0,15.5369863013699,117,0.817902617377421,07/21/1952,https://bioguide.congress.gov/search/bio/B001261,0,White,7,M.D.; Georgetown University School of Medicine; 1978,Physician,https://twitter.com/barrassoforwyo,,67.1,30.1,2018,https://edition.cnn.com/election/2018/results, +"Bennet, Michael F.",14,Colorado,CO,Democratic,III,https://www.bennet.senate.gov/,https://twitter.com/SenatorBennet,SenatorBennet,01/21/2009,12/31/2022,0,13.9506849315069,117,0.248044568735702,11/28/1964,https://bioguide.congress.gov/search/bio/B001267,0,White,8,J.D.; Yale Law School; 1993,Attorney ,https://twitter.com/michaelbennet,,49.1,45.4,2016,https://www.politico.com/2016-election/results/map/senate/, +"Blackburn, Marsha",15,Tennessee,TN,Republican,I,https://www.blackburn.senate.gov/,https://twitter.com/MarshaBlackburn,MarshaBlackburn,01/03/2019,12/31/2022,0,3.99452054794521,117,0.93228239890635,06/06/1952,https://bioguide.congress.gov/search/bio/B001243,1,White,6,"B.S.; Home Economics; Mississippi State University, Starkville; 1973",Businesswoman,N/A,,54.7,43.9,2018,https://edition.cnn.com/election/2018/results, +"Blumenthal, Richard",16,Connecticut,CT,Democratic,III,https://www.blumenthal.senate.gov/,https://twitter.com/SenBlumenthal,SenBlumenthal,01/03/2010,12/31/2022,0,13,117,0.0310655954121906,02/13/1946,https://bioguide.congress.gov/search/bio/B001277,0,White,8,J.D.; Yale University; 1973,lawyer ,N/A,,62.9,34.9,2016,https://www.politico.com/2016-election/results/map/senate/, +"Blunt, Roy",17,Missouri,MO,Republican,III,N/A,https://twitter.com/RoyBlunt,RoyBlunt,01/03/2011,12/31/2022,1,12,117,0.584409139223541,01/10/1950,https://bioguide.congress.gov/search/bio/B000575,0,White,7,"M.A.; Missouri State University ,Springfield; 1972",High School History teacher,N/A,,49.4,46.2,2016,https://www.politico.com/2016-election/results/map/senate/, +"Booker, Cory A.",18,New Jersey,NJ,Democratic,II,https://www.booker.senate.gov/,https://twitter.com/senbooker,senbooker,10/31/2013,12/31/2022,0,12,117,0.0455802980872292,04/27/1969,https://bioguide.congress.gov/search/bio/B001288,0,African-American; Asian-American,8,J.D.; Yale Law School; 1997,Attorney,https://twitter.com/CoryBooker,,57.2,40.9,2020,https://edition.cnn.com/election/2020/results/senate, +"Boozman, John",19,Arkansas,AR,Republican,III,https://www.boozman.senate.gov/,https://twitter.com/JohnBoozman,JohnBoozman,01/05/2011,12/31/2022,0,11.9945205479452,117,0.768699282926499,12/10/1950,https://bioguide.congress.gov/search/bio/B001236,0,White,6,Southern College of Optometry; 1977,Optometrist,N/A,,59.8,36.2,2016,https://www.politico.com/2016-election/results/map/senate/, +"Braun, Michael",20,Indiana,IN,Republican,I,https://www.braun.senate.gov/,https://twitter.com/SenatorBraun,SenatorBraun,01/03/2019,12/31/2022,0,3.99452054794521,117,0.98106874319906,03/24/1954,https://bioguide.congress.gov/search/bio/B001310,0,White,7,M.B.A.; Harvard Business School; 1978,Businessman ,N/A,,50.9,45,2018,https://edition.cnn.com/election/2018/results, +"Brown, Sherrod",21,Ohio,OH,Democratic,I,https://www.brown.senate.gov/,https://twitter.com/SenSherrodBrown,SenSherrodBrown,01/04/2007,12/31/2022,0,16,117,0.0923940264109351,11/09/1952,https://bioguide.congress.gov/search/bio/B000944,0,White,7,M.a.; Education; Ohio State University; 1981,Teacher,https://twitter.com/SherrodBrown,,53.4,46.6,2018,https://edition.cnn.com/election/2018/results, +"Burr, Richard",22,North Carolina,NC,Republican,III,N/A,https://twitter.com/SenatorBurr,SenatorBurr,01/03/2001,12/31/2022,1,22.0054794520548,117,0.605472891780936,11/30/1955,https://bioguide.congress.gov/search/bio/B001135,0,White,6,B.A.; Communications; Wake Forest University; 1978,Sales Manager,N/A,,51.1,45.3,2016,https://www.politico.com/2016-election/results/map/senate/, +"Cantwell, Maria",23,Washington,WA,Democratic,I,https://www.cantwell.senate.gov/,https://twitter.com/SenatorCantwell,SenatorCantwell,01/03/2001,12/31/2022,0,22.0054794520548,117,0.216591445478212,10/13/1958,https://bioguide.congress.gov/search/bio/C000127,1,White,6,B.A.; Public Administration; Miami University of Ohio; 1980,Businesswoman,N/A,,58.4,41.6,2018,https://edition.cnn.com/election/2018/results, +"Capito, Shelley Moore",24,West Virginia,WV,Republican,II,https://www.capito.senate.gov/,https://twitter.com/SenCapito,SenCapito,01/06/2015,12/31/2022,0,7.98904109589041,117,0.61478303011512,11/26/1953,https://bioguide.congress.gov/search/bio/C001047,1,White,7,M. Ed.; University of Virginia; 1976,College Counselor ,N/A,,70.3,27,2020,https://edition.cnn.com/election/2020/results/senate, +"Cardin, Benjamin L.",25,Maryland,MD,Democratic,I,https://www.cardin.senate.gov/,https://twitter.com/SenatorCardin,SenatorCardin,01/04/2007,12/31/2022,0,16,117,0.1994990268606,10/05/1943,https://bioguide.congress.gov/search/bio/C000141,0,White,8,J.D.; University of Maryland; 1967,lawyer ,N/A,,64.9,30.3,2018,https://edition.cnn.com/election/2018/results, +"Carper, Thomas R.",26,Delaware,DE,Democratic,I,https://www.carper.senate.gov/,https://twitter.com/SenatorCarper,SenatorCarper,01/03/2001,12/31/2022,0,22.0054794520548,117,0.309479384969288,01/23/1947,https://bioguide.congress.gov/search/bio/C000174,0,White,7,M.B.A.; University of Delaware; 1975,former military officer,N/A,,60,37.8,2018,https://edition.cnn.com/election/2018/results, +"Casey, Robert P., Jr.",27,Pennsylvania,PA,Democratic,I,https://www.casey.senate.gov/,https://twitter.com/SenBobCasey,SenBobCasey,01/04/2007,12/31/2022,0,16,117,0.171897216341815,04/13/1960,https://bioguide.congress.gov/search/bio/C001070,0,White,8,J.D.; Catholic University of America; 1988,lawyer ,https://twitter.com/Bob_Casey/,,55.7,42.6,2018,https://edition.cnn.com/election/2018/results, +"Cassidy, Bill",28,Louisiana,LA,Republican,II,https://www.cassidy.senate.gov/,https://twitter.com/SenBillCassidy,SenBillCassidy,01/06/2015,12/31/2022,0,7.98904109589041,117,0.682348710788942,09/28/1957,https://bioguide.congress.gov/search/bio/C001075,0,White,7,M.D.; Louisiana State University; 1979,Physician,https://twitter.com/BillCassidy/,,59.3,19,2020,https://edition.cnn.com/election/2020/results/senate, +"Collins, Susan M.",29,Maine,ME,Republican,II,https://www.collins.senate.gov/,https://twitter.com/SenatorCollins,SenatorCollins,01/07/1997,12/31/2022,0,25.9972602739726,117,0.448622425849401,12/07/1952,https://bioguide.congress.gov/search/bio/C001035,1,White,6,Bachelor in Government; St. Lawrence University; 1975,Legislative Assistant,N/A,,51,42.4,2020,https://edition.cnn.com/election/2020/results/senate, +"Coons, Christopher A.",30,Delaware,DE,Democratic,II,https://www.coons.senate.gov/,https://twitter.com/ChrisCoons,ChrisCoons,11/15/2010,12/31/2022,0,12.1342465753425,117,0.338422715351401,09/09/1963,https://bioguide.congress.gov/search/bio/C001088,0,White,edu_level,J.D.; Yale Law School; 1992,lawyer ,N/A,,59.4,37.9,2020,https://edition.cnn.com/election/2020/results/senate, +"Cornyn, John",31,Texas,TX,Republican,II,https://www.cornyn.senate.gov/,https://twitter.com/JohnCornyn,JohnCornyn,11/30/2002,12/31/2022,0,20.0986301369863,117,0.772226738391321,02/02/1952,https://bioguide.congress.gov/search/bio/C001056,0,White,8,J.D.; St. Mary�s School of Law; 1977,Attorney,N/A,,53.5,43.9,2020,https://edition.cnn.com/election/2020/results/senate, +"Cortez Masto, Catherine",32,Nevada,NV,Democratic,III,https://www.cortezmasto.senate.gov/,https://twitter.com/SenCortezMasto,SenCortezMasto,01/03/2017,12/31/2022,0,5.99452054794521,117,0.236574567369409,03/29/1964,https://bioguide.congress.gov/search/bio/C001113,1,Hispanic; White,8,J.D.; Gonzaga University School of Law; 1990,lawyer ,https://twitter.com/CortezMasto/,,47.1,44.7,2016,https://www.politico.com/2016-election/results/map/senate/, +"Cotton, Tom",33,Arkansas,AR,Republican,II,https://www.cotton.senate.gov/,https://twitter.com/SenTomCotton,SenTomCotton,01/06/2015,12/31/2022,0,7.98904109589041,117,0.876390364042756,05/13/1977,https://bioguide.congress.gov/search/bio/C001095,0,White,8,J.D.; Harvard University; 2002,Attorney,https://twitter.com/TomCottonAR/,,66.5,33.5,2020,https://edition.cnn.com/election/2020/results/senate, +"Cramer, Kevin",34,North Dakota,ND,Republican,I,https://www.cramer.senate.gov/,https://twitter.com/SenKevinCramer,SenKevinCramer,01/03/2019,12/31/2022,0,3.99452054794521,117,0.910896298032277,01/21/1961,https://bioguide.congress.gov/search/bio/C001096,0,White,7,M.A.; Management; University o fMary; 2003,Politician,https://twitter.com/kevincramer,,55.5,44.5,2018,https://edition.cnn.com/election/2018/results, +"Crapo, Michael",35,Idaho,ID,Republican,III,https://www.crapo.senate.gov/,https://twitter.com/MikeCrapo,MikeCrapo,01/06/1999,12/31/2022,0,24,117,0.823331951918519,05/20/1951,https://bioguide.congress.gov/search/bio/C000880,0,White,8,J.D.; Harvard University; 1977,lawyer ,N/A,,66.1,27.8,2016,https://www.politico.com/2016-election/results/map/senate/, +"Cruz, Ted",36,Texas,TX,Republican,I,https://www.cruz.senate.gov/,https://twitter.com/SenTedCruz,SenTedCruz,01/03/2013,12/31/2022,0,9.9972602739726,117,0.944056385174951,12/22/1970,https://bioguide.congress.gov/search/bio/C001098,0,Hispanic; White,8,J.D.; Harvard University; 1995,Attorney,https://twitter.com/tedcruz,,50.9,48.3,2018,https://edition.cnn.com/election/2018/results, +"Daines, Steve",37,Montana,MT,Republican,II,https://www.daines.senate.gov/,https://twitter.com/SteveDaines,SteveDaines,01/06/2015,12/31/2022,0,7.98904109589041,117,0.859322244752884,08/20/1962,https://bioguide.congress.gov/search/bio/D000618,0,White,6,B.S.; Chemical Engineering; Montana State University; 1984,Corporate Executive,N/A,,55,45,2020,https://edition.cnn.com/election/2020/results/senate, +"Duckworth, Tammy",38,Illinois,IL,Democratic,III,https://www.duckworth.senate.gov/,https://twitter.com/SenDuckworth,SenDuckworth,01/03/2017,12/31/2022,0,5.99452054794521,117,0.0944404184553066,03/12/1968,https://bioguide.congress.gov/search/bio/D000622,1,Asian; White,8,PhD in human services; Capella University School of Public Service Leadership; 2015,retired Army National Guard lieutenant colonel ,https://twitter.com/tammyduckworth,,54.4,40.2,2016,https://www.politico.com/2016-election/results/map/senate/, +"Durbin, Richard J.",39,Illinois,IL,Democratic,II,https://www.durbin.senate.gov/,https://twitter.com/SenatorDurbin,SenatorDurbin,01/07/1997,12/31/2022,0,25.9972602739726,117,0.0855733771029607,11/21/1944,https://bioguide.congress.gov/search/bio/D000563,0,White,8,J.D.; Georgetown University; 1969,lawyer ,https://twitter.com/DickDurbin,,54.9,38.9,2020,https://edition.cnn.com/election/2020/results/senate, +"Ernst, Joni",40,Iowa,IA,Republican,II,https://www.ernst.senate.gov/,https://twitter.com/SenJoniErnst,SenJoniErnst,01/06/2015,12/31/2022,0,7.98904109589041,117,0.826265400967212,07/01/1970,https://bioguide.congress.gov/search/bio/E000295,1,White,7,M.P.A.; Columbus State University; 1995,former military officer,https://twitter.com/joniernst,,51.8,45.2,2020,https://edition.cnn.com/election/2020/results/senate, +"Fetterman, John",41,Pennsylvania,PA,Democratic,III,https://www.fetterman.senate.gov/,https://twitter.com/SenFettermanPA,SenFettermanPA,01/03/2023,01/03/2029,,6.0054794520548,117,0.150865658191444,,,,,,,,,,,,,, +"Feinstein, Dianne",42,California,CA,Democratic,I,https://www.feinstein.senate.gov/public/,https://twitter.com/SenFeinstein,SenFeinstein,11/10/1992,12/31/2022,0,30.158904109589,117,0.150865658191444,06/22/1933,https://bioguide.congress.gov/search/bio/F000062,1,White,6,B.A.; History; Stanford University; 1955,Politician ,https://twitter.com/DianneFeinstein,,54.2,45.8,2018,https://edition.cnn.com/election/2018/results, +"Fischer, Debra",43,Nebraska,NE,Republican,I,https://www.fischer.senate.gov/,https://twitter.com/SenatorFischer,SenatorFischer,01/03/2013,12/31/2022,0,9.9972602739726,117,0.688576408222131,03/01/1951,https://bioguide.congress.gov/search/bio/F000463,1,White,6,B.S.; Education; University of Nebraska; 1988,former education official ,N/A,,57.7,38.6,2018,https://edition.cnn.com/election/2018/results, +"Gillibrand, Kirsten E.",44,New York,NY,Democratic,I,https://www.gillibrand.senate.gov/,https://twitter.com/SenGillibrand,SenGillibrand,01/27/2009,12/31/2022,0,13.9342465753425,117,0.12072202063417,12/09/1966,https://bioguide.congress.gov/search/bio/G000555,1,White,8,J.D.; University of California; 1991,lawyer ,https://twitter.com/gillibrandny,,67,33,2018,https://edition.cnn.com/election/2018/results, +"Graham, Lindsey",45,South Carolina,SC,Republican,II,https://www.lgraham.senate.gov/,https://twitter.com/LindseyGrahamSC,LindseyGrahamSC,01/07/2003,12/31/2022,0,19.9945205479452,117,0.619070797359753,07/09/1955,https://bioguide.congress.gov/search/bio/G000359 ,0,White,8,J.D.; University of South Carolina; 1981,Air Force/Lawyer ,https://twitter.com/grahamblog,,54.5,44.2,2020,https://edition.cnn.com/election/2020/results/senate, +"Grassley, Chuck",46,Iowa,IA,Republican,III,https://www.grassley.senate.gov/,https://twitter.com/ChuckGrassley,ChuckGrassley,01/05/1981,12/31/2022,0,42.013698630137,117,0.670073592619545,09/17/1933,https://bioguide.congress.gov/search/bio/G000386,0,White,7,M.A.; Political Science; University of Northern Iowa; 1956,Politician ,N/A,,60.2,35.7,2016,https://www.politico.com/2016-election/results/map/senate/, +"Hagerty, Bill",47,Tennessee,TN,Republican,II,https://www.hagerty.senate.gov/,https://twitter.com/SenatorHagerty,SenatorHagerty,01/03/2021,12/31/2022,0,1.99178082191781,117,0.857410027434407,08/14/1959,https://bioguide.congress.gov/search/bio/H000601,0,White,8,J.D.; Vanderbilt Law School; 1984,Politician,https://twitter.com/billhagertytn,,62.2,35.2,2020,https://edition.cnn.com/election/2020/results/senate, +"Hassan, Margaret Wood",48,New Hampshire,NH,Democratic,III,https://www.hassan.senate.gov/,https://twitter.com/SenatorHassan,SenatorHassan,01/03/2017,12/31/2022,0,5.99452054794521,117,0.43611907238278,02/27/1958,https://bioguide.congress.gov/search/bio/H001076,1,White,8,J.D.; Northeastern University School of law; 1985,Politician/Attorney,https://twitter.com/Maggie_Hassan,,48,47.9,2016,https://www.politico.com/2016-election/results/map/senate/, +"Hawley, Josh",49,Missouri,MO,Republican,I,https://www.hawley.senate.gov/,https://twitter.com/HawleyMO,HawleyMO,01/03/2019,12/31/2022,0,3.99452054794521,117,0.864366195602263,12/31/1979,https://bioguide.congress.gov/search/bio/H001089,0,White,8,J.D.; Yale Law School; 2006,lawyer ,N/A,,51.4,45.6,2018,https://edition.cnn.com/election/2018/results, +"Heinrich, Martin",50,New Mexico,NM,Democratic,I,https://www.heinrich.senate.gov/,https://twitter.com/MartinHeinrich,MartinHeinrich,01/03/2013,12/31/2022,0,9.9972602739726,117,0.2007037353465,10/17/1971,https://bioguide.congress.gov/search/bio/H001046,0,White,6,B.S.; Mechanical Engineering; University of Missouri; 1995,Businessman/Politician,N/A,,54.1,30.5,2018,https://edition.cnn.com/election/2018/results, +"Hickenlooper, John W.",51,Colorado,CO,Democratic,II,https://www.hickenlooper.senate.gov/,https://twitter.com/SenatorHick,SenatorHick,01/03/2021,12/31/2022,0,1.99178082191781,117,0.335030323955882,02/07/1952,https://bioguide.congress.gov/search/bio/H000273,0,White,7,M.A.; Geology; Wesleyan University; 1980,"Politician, Businessman, Geologist",https://twitter.com/hickenlooper,,53.5,44.2,2020,https://edition.cnn.com/election/2020/results/senate, +"Hirono, Mazie K.",52,Hawaii,HI,Democratic,I,https://www.hirono.senate.gov/,https://twitter.com/maziehirono,maziehirono,01/03/2013,12/31/2022,0,9.9972602739726,117,0.0715447123166643,11/03/1947,https://bioguide.congress.gov/search/bio/H001042,1,Asian,8,J.D.; Georgetown University; 1978,Politician,https://twitter.com/mazieforhawaii,,71.2,28.8,2018,https://edition.cnn.com/election/2018/results, +"Hoeven, John",53,North Dakota,ND,Republican,III,https://www.hoeven.senate.gov/,https://twitter.com/SenJohnHoeven,SenJohnHoeven,01/05/2011,12/31/2022,0,11.9945205479452,117,0.815683863264003,03/13/1957,https://bioguide.congress.gov/search/bio/H001061,0,White,7,M.B.A.; Northwestern University; 1981,Businessman/Politician,N/A,,78.6,17,2016,https://www.politico.com/2016-election/results/map/senate/, +"Hyde-Smith, Cindy",54,Mississippi,MS,Republican,II,https://www.hydesmith.senate.gov/,https://twitter.com/SenHydeSmith,SenHydeSmith,04/09/2018,12/31/2022,0,4.73150684931507,117,0.868059764299163,05/10/1959,https://bioguide.congress.gov/search/bio/H001079 ,1,White,6,"B.A.; Criminal justice, political science; University of Southern Mississippi; 1981",Politician ,https://twitter.com/cindyhydesmith,,54.1,44.1,2020,https://edition.cnn.com/election/2020/results/senate, +"Inhofe, James",55,Oklahoma,OK,Republican,II,N/A,https://twitter.com/JimInhofe,JimInhofe,11/17/1994,12/31/2022,1,28.1397260273973,117,0.880238318204784,11/17/1934,https://bioguide.congress.gov/search/bio/I000024 ,0,White,6,B.A.; Economics; University of Tulsa; 1973,Politician,N/A,,62.9,32.8,2020,https://edition.cnn.com/election/2020/results/senate, +"Johnson, Ron",56,Wisconsin,WI,Republican,III,https://www.ronjohnson.senate.gov/,https://twitter.com/SenRonJohnson,SenRonJohnson,01/05/2011,12/31/2022,0,11.9945205479452,117,0.743401705863958,04/08/1955,https://bioguide.congress.gov/search/bio/J000293,0,White,6,B.S.; Business and Accounting; University of Minnesota; 1977,Accountant,https://twitter.com/ronjohnsonwi,,50.2,46.8,2016,https://www.politico.com/2016-election/results/map/senate/, +"Kaine, Tim",57,Virginia,VA,Democratic,I,https://www.kaine.senate.gov/,https://twitter.com/timkaine,timkaine,01/03/2013,12/31/2022,0,9.9972602739726,117,0.203600708089391,02/26/1958,https://bioguide.congress.gov/search/bio/K000384,0,White,8,J.D.; Harvard University; 1983,Lawyer/Politician,N/A,,57.1,41.1,2018,https://edition.cnn.com/election/2018/results, +"Kelly, Mark",58,Arizona,AZ,Democratic,III,https://www.kelly.senate.gov/,https://twitter.com/SenMarkKelly,SenMarkKelly,12/02/2020,12/31/2022,0,2.07945205479452,117,0.399793347847799,02/21/1964,https://bioguide.congress.gov/search/bio/K000377,0,White,7,M.S.; Aeronautical Engineering; U.S. Naval Postgraduate School,"Navy Captain, Astronaut",https://twitter.com/CaptMarkKelly/,,51.2,48.8,2020,https://edition.cnn.com/election/2020/results/senate, +"Kennedy, John Neely",59,Louisiana,LA,Republican,III,https://www.kennedy.senate.gov/,https://twitter.com/SenJohnKennedy,SenJohnKennedy,01/03/2017,12/31/2022,0,5.99452054794521,117,0.785684351248518,11/21/1951,https://bioguide.congress.gov/search/bio/K000393,0,White,8,J.D.; University of Virginia School of LAw; 1977,Lawyer/Politician,https://twitter.com/JohnKennedyLA,,60.7,39.3,2016,https://www.politico.com/2016-election/results/map/senate/, +"King, Angus S., Jr.",60,Maine,ME,Independent,I,https://www.king.senate.gov/,https://twitter.com/SenAngusKing,SenAngusKing,01/03/2013,12/31/2022,0,9.9972602739726,117,0.346033257048853,03/31/1944,https://bioguide.congress.gov/search/bio/K000383 ,0,White,8,J.D.; University of Virginia; 1969,lawyer ,N/A,,54.3,35.2,2018,https://edition.cnn.com/election/2018/results, +"Klobuchar, Amy",61,Minnesota,MN,Democratic,I,https://www.klobuchar.senate.gov/,https://twitter.com/SenAmyKlobuchar,SenAmyKlobuchar,01/04/2007,12/31/2022,0,16,117,0.130504324943533,05/25/1960,https://bioguide.congress.gov/search/bio/K000367 ,1,White,8,"J.D.; University of Chicago, 1985",lawyer ,https://twitter.com/amyklobuchar,,60.3,36.2,2018,https://edition.cnn.com/election/2018/results, +"Lankford, James",62,Oklahoma,OK,Republican,III,https://www.lankford.senate.gov/,https://twitter.com/SenatorLankford,SenatorLankford,01/03/2015,12/31/2022,0,7.9972602739726,117,0.89992933687588,03/04/1968,https://bioguide.congress.gov/search/bio/L000575,0,White,7,M.Div.; Southwestern Theological Baptist Seminary; 1994,Teacher,https://twitter.com/jameslankford,,67.7,24.6,2016,https://www.politico.com/2016-election/results/map/senate/, +"Leahy, Patrick",63,Vermont,VT,Democratic,III,N/A,https://twitter.com/SenatorLeahy,SenatorLeahy,01/14/1975,12/31/2022,1,47.9945205479452,117,0.144121081911654,03/31/1940,https://bioguide.congress.gov/search/bio/L000174,0,White,8,J.D.; Georgetown University; 1964,lawyer ,N/A,,61.3,33,2016,https://www.politico.com/2016-election/results/map/senate/, +"Lee, Mike",64,Utah,UT,Republican,III,https://www.lee.senate.gov/,https://twitter.com/SenMikeLee,SenMikeLee,01/05/2011,12/31/2022,0,11.9945205479452,117,0.753748787807473,06/04/1971,https://bioguide.congress.gov/search/bio/L000577,0,White,8,J.D.; Brigham Young university; 1997,lawyer ,https://twitter.com/BasedMikeLee,,68,27.4,2016,https://www.politico.com/2016-election/results/map/senate/, +"Luj�n, Ben Ray",65,New Mexico,NM,Democratic,II,https://www.lujan.senate.gov/,https://twitter.com/SenatorLujan,SenatorLujan,01/03/2021,12/31/2022,0,1.99178082191781,117,0.174860888138848,06/07/1972,https://bioguide.congress.gov/search/bio/L000570 ,0,Hispanic,6,B.B.A.; New Mexico Highlands University; 2007,Politician,https://twitter.com/benraylujan,,51.7,45.6,2020,https://edition.cnn.com/election/2020/results/senate, +"Lummis, Cynthia M.",66,Wyoming,WY,Republican,II,https://www.lummis.senate.gov/,https://twitter.com/SenLummis,SenLummis,01/03/2021,12/31/2022,0,1.99178082191781,117,0.893292958108508,09/10/1954,https://bioguide.congress.gov/search/bio/L000571 ,1,White,8,"J.D.; University of Wyoming College of Law, Laramie, Wyo.; 1985",Politician/Attorney,https://twitter.com/CynthiaMLummis,,73.1,26.9,2020,https://edition.cnn.com/election/2020/results/senate, +"Manchin, Joe, III",67,West Virginia,WV,Democratic,I,https://www.manchin.senate.gov/,https://twitter.com/Sen_JoeManchin,Sen_JoeManchin,11/15/2010,12/31/2022,0,12.1342465753425,117,0.446686774398077,08/24/1947,https://bioguide.congress.gov/search/bio/M001183 ,0,White,6,B.A.; Business Administration; West Virginia University; 1970,Politician/Businessman,https://twitter.com/JoeManchinWV,,49.6,46.3,2018,https://edition.cnn.com/election/2018/results, +"Markey, Edward J.",68,Massachusetts,MA,Democratic,II,https://www.markey.senate.gov/,https://twitter.com/SenMarkey,SenMarkey,07/16/2013,12/31/2022,0,9.46575342465753,117,0.0139659683705929,07/11/1946,https://bioguide.congress.gov/search/bio/M000133,0,White,8,J.D.; Boston College Law School; 1972,Politician/Lawyer ,https://twitter.com/edmarkey,,66.2,33,2020,https://edition.cnn.com/election/2020/results/senate, +"Marshall, Roger",69,Kansas,KS,Republican,II,https://www.marshall.senate.gov/,https://twitter.com/SenatorMarshall,SenatorMarshall,01/03/2021,12/31/2022,0,1.99178082191781,117,0.882124792228652,08/09/1960,https://bioguide.congress.gov/search/bio/M001198,0,White,7,M.D.; University of Kansas School of Medicine; 1987,Physician,https://twitter.com/RogerMarshallMD/,,53.2,41.8,2020,https://edition.cnn.com/election/2020/results/senate, +"McConnell, Mitch",70,Kentucky,KY,Republican,II,https://www.mcconnell.senate.gov/,https://twitter.com/LeaderMcConnell,LeaderMcConnell,01/03/1985,12/31/2022,0,38.0164383561644,117,0.599687533584357,02/20/1942,https://bioguide.congress.gov/search/bio/M000355,0,White,8,J.D.; Kentucky Law School; 1967,Politician/Attorney,N/A,,57.8,38.2,2020,https://edition.cnn.com/election/2020/results/senate, +"Menendez, Robert",71,New Jersey,NJ,Democratic,I,https://www.menendez.senate.gov/,https://twitter.com/SenatorMenendez,SenatorMenendez,01/18/2006,12/31/2022,0,16.9616438356164,117,0.191515157461704,01/01/1954,https://bioguide.congress.gov/search/bio/M000639,0,Hispanic,8,J.D.; Rutgers university of Law; 1979,Politician/Lawyer ,N/A,,54,42.8,2018,https://edition.cnn.com/election/2018/results, +"Merkley, Jeff",72,Oregon,OR,Democratic,II,https://www.merkley.senate.gov/,https://twitter.com/SenJeffMerkley,SenJeffMerkley,01/06/2009,12/31/2022,0,13.9917808219178,117,0.0355414098997263,10/24/1956,https://bioguide.congress.gov/search/bio/M001176,0,White,7,M.P.A.; Princeton University; 1982,Politician,https://twitter.com/jeffmerkley,,56.9,39.3,2020,https://edition.cnn.com/election/2020/results/senate, +"Moran, Jerry",73,Kansas,KS,Republican,III,https://www.moran.senate.gov/public/,https://twitter.com/JerryMoran,JerryMoran,01/05/2011,12/31/2022,0,11.9945205479452,117,,05/29/1954,https://bioguide.congress.gov/search/bio/M000934 ,0,White,8,J.D.; Kansas University School of Law; 1981,Politician/Lawyer ,N/A,,62.4,32.1,2016,https://www.politico.com/2016-election/results/map/senate/, +"Murkowski, Lisa",74,Alaska,AK,Republican,III,https://www.murkowski.senate.gov/,https://twitter.com/lisamurkowski,lisamurkowski,12/20/2002,12/31/2022,0,20.0438356164384,117,0.473296745648617,05/22/1957,https://bioguide.congress.gov/search/bio/M001153,1,White,8,J.D.; Willamette College of Law; 1985,Attorney,https://twitter.com/lisaforsenate,,44.3,29.5,2016,https://www.politico.com/2016-election/results/map/senate/, +"Murphy, Christopher",75,Connecticut,CT,Democratic,I,https://www.murphy.senate.gov/,https://twitter.com/ChrisMurphyCT,ChrisMurphyCT,01/03/2013,12/31/2022,0,9.9972602739726,117,0.152635018959264,08/03/1973,https://bioguide.congress.gov/search/bio/M001169,0,White,8,J.D.; University of Connecticut; 2002,Politician/Lawyer ,N/A,,59.5,39.4,2018,https://edition.cnn.com/election/2018/results, +"Murray, Patty",76,Washington,WA,Democratic,III,https://www.murray.senate.gov/,https://twitter.com/PattyMurray,PattyMurray,01/05/1993,12/31/2022,0,30.0054794520548,117,0.142703588817088,10/11/1950,https://bioguide.congress.gov/search/bio/M001111,1,White,6,B.A.; Physical Education; Washington State University; 1972,Teacher ,https://twitter.com/murraycampaign,,59.1,40.9,2016,https://www.politico.com/2016-election/results/map/senate/, +"Ossoff, Jon",77,Georgia,GA,Democratic,II,https://www.ossoff.senate.gov/,https://twitter.com/SenOssoff,SenOssoff,01/20/2021,12/31/2022,0,1.94520547945205,117,0.303405364928085,02/16/1987,https://bioguide.congress.gov/search/bio/O000174,0,White,7,M.S.; International Politicla Economy; London School of Economics; 2013,"Filmmaker, Journalist",https://twitter.com/ossoff,,50.6,49.4,2020,https://edition.cnn.com/election/2020/results/senate, +"Padilla, Alex",78,California,CA,Democratic,III,https://www.padilla.senate.gov/,https://twitter.com/SenAlexPadilla,SenAlexPadilla,01/20/2021,12/31/2022,0,1.94520547945205,117,0.0200324383981554,03/22/1973,https://bioguide.congress.gov/search/bio/P000145,0,Hispanic,6,B.S.; Mechanical Engineering; MIT; 1994,Engineer ,https://twitter.com/AlexPadilla4CA,,N/A,N/A,N/A,https://www.nytimes.com/2020/12/22/us/politics/alex-padilla-kamala-california-senate.html,appointed in 2020 to replace Kamala Harris +"Paul, Rand",79,Kentucky,KY,Republican,III,https://www.paul.senate.gov/,https://twitter.com/senrandpaul,senrandpaul,01/05/2011,12/31/2022,0,11.9945205479452,117,0.684883322748808,01/07/1963,https://bioguide.congress.gov/search/bio/P000603,0,White,7,M.D.; Duke University; 1988,Ophthalmologist,https://twitter.com/RandPaul,,57.3,42.7,2016,https://www.politico.com/2016-election/results/map/senate/, +"Peters, Gary C.",80,Michigan,MI,Democratic,II,https://www.peters.senate.gov/,https://twitter.com/SenGaryPeters,SenGaryPeters,01/06/2015,12/31/2022,0,7.98904109589041,117,0.355796587683312,12/01/1958,https://bioguide.congress.gov/search/bio/P000595,0,White,8,J.D.; Wayne State University; 1989,Lawyer,https://twitter.com/garypeters,,49.9,48.2,2020,https://edition.cnn.com/election/2020/results/senate, +"Portman, Robert",81,Ohio,OH,Republican,III,N/A,https://twitter.com/senrobportman,senrobportman,01/05/2011,12/31/2022,1,11.9945205479452,117,0.548120690430407,12/19/1955,https://bioguide.congress.gov/search/bio/P000449,0,White,8,J.D.; University of Michigan; 1985,Lawyer,N/A,,58.3,36.9,2016,https://www.politico.com/2016-election/results/map/senate/, +"Reed, John F.",82,Rhode Island,RI,Democratic,,https://www.reed.senate.gov/,https://twitter.com/SenJackReed,SenJackReed,01/07/1997,12/31/2022,0,25.9972602739726,117,,11/12/1949,https://bioguide.congress.gov/search/bio/R000122,0,White,8,J.D.; Harvard University; 1982,Lawyer,N/A,,66.6,33.4,2020,https://edition.cnn.com/election/2020/results/senate, +"Risch, James E.",83,Idaho,ID,Republican,II,https://www.risch.senate.gov/,https://twitter.com/SenatorRisch,SenatorRisch,01/06/2009,12/31/2022,0,13.9917808219178,117,0.82910906209038,05/03/1943,https://bioguide.congress.gov/search/bio/R000584,0,White,8,J.D.; University of Idaho; 1968,Attorney,N/A,,62.6,33.2,2020,https://edition.cnn.com/election/2020/results/senate, +"Romney, Mitt",84,Utah,UT,Republican,I,https://www.romney.senate.gov/,https://twitter.com/SenatorRomney,SenatorRomney,01/03/2019,12/31/2022,0,3.99452054794521,117,0.596688837978771,03/12/1947,https://bioguide.congress.gov/search/bio/R000615,0,White,7,M.B.A.; Harvard Business School; 1975,Businessman,https://twitter.com/mittromney,,62.6,30.9,2018,https://edition.cnn.com/election/2018/results, +"Rosen, Jacky",85,Nevada,NV,Democratic,I,https://www.rosen.senate.gov/,https://twitter.com/SenJackyRosen,SenJackyRosen,01/03/2019,12/31/2022,0,3.99452054794521,117,0.308548351377894,08/02/1957,https://bioguide.congress.gov/search/bio/R000608,1,White,6,B.A.; Psychology; University of Minnesota; 1979,Businesswoman,https://twitter.com/RosenforNevada,,50.4,45.4,2018,https://edition.cnn.com/election/2018/results, +"Rounds, Mike",86,South Dakota,SD,Republican,II,https://www.rounds.senate.gov/,https://twitter.com/SenatorRounds,SenatorRounds,01/06/2015,12/31/2022,0,7.98904109589041,117,0.784008560585577,10/24/1954,https://bioguide.congress.gov/search/bio/R000605,0,White,6,B.S.; Political Science; South Dakota State University; 1977,Businessman,N/A,,65.7,34.3,2020,https://edition.cnn.com/election/2020/results/senate, +"Rubio, Marco",87,Florida,FL,Republican,III,https://www.rubio.senate.gov/,https://twitter.com/senmarcorubio,senmarcorubio,01/05/2011,12/31/2022,0,11.9945205479452,117,0.831181764071725,05/28/1971,https://bioguide.congress.gov/search/bio/R000595,0,Hispanic,8,J.D.; University of Miami; 1996,Lawyer,https://twitter.com/marcorubio,,52,44.3,2016,https://www.politico.com/2016-election/results/map/senate/, +"Sanders, Bernard",88,Vermont,VT,Independent,I,https://www.sanders.senate.gov/,https://twitter.com/SenSanders,SenSanders,01/04/2007,12/31/2022,0,16,117,0,09/08/1941,https://bioguide.congress.gov/search/bio/S000033,0,White,6,B.A.; Political Science; University of Chicago; 1964,Politician ,https://twitter.com/BernieSanders/,,67.4,27.5,2018,https://edition.cnn.com/election/2018/results, +"Sasse, Benjamin",89,Nebraska,NE,Republican,,N/A,https://twitter.com/sensasse,sensasse,01/06/2015,12/31/2022,1,7.98904109589041,117,0.684229649213868,02/22/1972,https://bioguide.congress.gov/search/bio/S001197,0,White,8,PhD in History; Yale University; 2004,Professor,https://twitter.com/BenSasse,,62.7,24.4,2020,https://edition.cnn.com/election/2020/results/senate, +"Schatz, Brian",90,Hawaii ,HI,Democratic,,https://www.schatz.senate.gov/,https://twitter.com/brianschatz,brianschatz,12/27/2012,12/31/2022,0,10.0164383561644,117,,10/20/1972,https://bioguide.congress.gov/search/bio/S001194,0,White,6,B.A.; Philosophy; Pomona College; 1994,Educator ,https://twitter.com/SenBrianSchatz,,73.6,22.2,2016,https://www.politico.com/2016-election/results/map/senate/, +"Schumer, Charles E.",91,New York,NY,Democratic,III,https://www.schumer.senate.gov/,https://twitter.com/SenSchumer,SenSchumer,01/06/1999,12/31/2022,0,24,117,0.239789022209428,11/23/1950,https://bioguide.congress.gov/search/bio/S000148 ,0,White,8,J.D.; Harvard University; 1974,Attorney,,,70.4,27.4,2016,https://www.politico.com/2016-election/results/map/senate/, +"Scott, Rick",92,Florida,FL,Republican,I,https://www.rickscott.senate.gov/,https://twitter.com/SenRickScott,SenRickScott,01/08/2019,12/31/2022,0,3.98082191780822,117,1,12/01/1952,https://bioguide.congress.gov/search/bio/S001217,0,White,8,J.D.; Southern Methodist University; 1978,Lawyer,,,50.1,49.9,2018,https://edition.cnn.com/election/2018/results, +"Scott, Tim",93,South Carolina,SC,Republican,III,https://www.scott.senate.gov/,https://twitter.com/SenatorTimScott,SenatorTimScott,01/03/2013,12/31/2022,0,9.9972602739726,117,0.781356077518849,09/19/1965,https://bioguide.congress.gov/search/bio/S001184,0,African-American,6,B.S.; Political Science; Charleston Southern University; 1988 ,Businessman,,,60.6,37,2016,https://www.politico.com/2016-election/results/map/senate/, +"Shaheen, Jeanne",94,New Hampshire,NH,Democratic,II,https://www.shaheen.senate.gov/,https://twitter.com/SenatorShaheen,SenatorShaheen,01/06/2009,12/31/2022,0,13.9917808219178,117,0.2925665319541,01/28/1947,https://bioguide.congress.gov/search/bio/S001181,1,White,7,M.S.S.; University of Mississippi; 1973,Educator ,,,56.6,41,2020,https://edition.cnn.com/election/2020/results/senate, +"Shelby, Richard",95,Alabama,AL,Republican,III,N/A,https://twitter.com/SenShelby,SenShelby,01/06/1987,12/31/2022,1,36.0082191780822,117,0.577739000839365,05/06/1934,https://bioguide.congress.gov/search/bio/S000320,0,White,6,LL.B.; University of Alabama; 1963,Lawyer,,,64.2,35.8,2016,https://www.politico.com/2016-election/results/map/senate/, +"Sinema, Kyrsten",96,Arizona,AZ,Independent,I,https://www.sinema.senate.gov/,https://twitter.com/SenatorSinema,SenatorSinema,01/03/2019,12/31/2022,0,3.99452054794521,117,0.500967034663567,07/12/1976,https://bioguide.congress.gov/search/bio/S001191,1,White,8,PhD in Justice Studies; Arizona State University; 2012,Lawery,,,50,47.6,2018,https://edition.cnn.com/election/2018/results, +"Smith, Tina",97,Minnesota,MN,Democratic,II,https://www.smith.senate.gov/,https://twitter.com/SenTinaSmith,SenTinaSmith,01/03/2018,12/31/2022,0,4.99452054794521,117,0.0756533259297989,03/04/1958,https://bioguide.congress.gov/search/bio/S001203,1,White,7,M.B.A. Dartmouth College; 1984,Businesswoman,,,48.8,43.5,2020,https://edition.cnn.com/election/2020/results/senate, +"Stabenow, Debbie",98,Michigan,MI,Democratic,I,https://www.stabenow.senate.gov/,https://twitter.com/SenStabenow,SenStabenow,01/03/2001,12/31/2022,0,22.0054794520548,117,0.221949395648287,04/29/1950,https://bioguide.congress.gov/search/bio/S000770,1,White,7,M.S.W.; Michigan State University; 1975,Social Worker,,,52.3,45.8,2018,https://edition.cnn.com/election/2018/results, +"Sullivan, Dan",99,Alaska,AK,Republican,II,https://www.sullivan.senate.gov/,https://twitter.com/SenDanSullivan,SenDanSullivan,01/06/2015,12/31/2022,0,7.98904109589041,117,0.652100683642255,11/13/1964,https://bioguide.congress.gov/search/bio/S001198,0,White,8,J.D.; Georgetown University; 1993,Lawyer,,,53.9,41.2,2020,https://edition.cnn.com/election/2020/results/senate, +"Tester, Jon",100,Montana,MT,Democratic,I,https://www.tester.senate.gov/,https://twitter.com/SenatorTester,SenatorTester,01/04/2007,12/31/2022,0,16,117,0.377646486433112,08/21/1956,https://bioguide.congress.gov/search/bio/T000464 ,0,White,6,B.A.; Music; University of Providence; 1978,Farmer ,,,50.3,46.8,2018,https://edition.cnn.com/election/2018/results, +"Thune, John",101,South Dakota,SD,Republican,III,https://www.thune.senate.gov/,https://twitter.com/SenJohnThune,SenJohnThune,01/04/2005,12/31/2022,0,18,117,0.795060855902239,01/07/1961,https://bioguide.congress.gov/search/bio/T000250 ,0,White,7,M.B.A.; University of South Dakota; 1984,Businessman,,,71.8,28.2,2016,https://www.politico.com/2016-election/results/map/senate/, +"Tillis, Thom",102,North Carolina,NC,Republican,II,https://www.tillis.senate.gov/,https://twitter.com/SenThomTillis,SenThomTillis,01/06/2015,12/31/2022,0,7.98904109589041,117,0.819146177750934,08/30/1960,https://bioguide.congress.gov/search/bio/T000476 ,0,White,6,B.S.; Technology Management; University of Maryland; 1996,Businessman,,,48.7,46.9,2020,https://edition.cnn.com/election/2020/results/senate, +"Toomey, Patrick",103,Pennsylvania,PA,Republican,III,N/A,https://twitter.com/SenToomey,SenToomey,01/05/2011,12/31/2022,1,11.9945205479452,117,0.607637714921737,11/17/1961,https://bioguide.congress.gov/search/bio/T000461 ,0,White,6,A.B.; Government; Harvard College; 1984,Businessman,,,48.9,47.2,2016,https://www.politico.com/2016-election/results/map/senate/, +"Tuberville, Tommy",104,Alabama,AL,Republican,II,https://www.tuberville.senate.gov/,https://twitter.com/SenTuberville,SenTuberville,01/03/2021,12/31/2022,0,1.99178082191781,117,0.808701355452043,09/18/1954,https://bioguide.congress.gov/search/bio/T000278 ,0,White,6,"B.S., physical education, Southern Arkansas University, 1976",college football coach ,,,60.1,39.7,2020,https://edition.cnn.com/election/2020/results/senate, +"Van Hollen, Chris",105,Maryland,MD,Democratic,,https://www.vanhollen.senate.gov/,https://twitter.com/ChrisVanHollen,ChrisVanHollen,01/03/2017,12/31/2022,0,5.99452054794521,,,01/10/1959,https://bioguide.congress.gov/search/bio/V000128,0,White,8,J.D.; Georgetown university; 1990,Lawyer,,,60.4,36.4,2016,https://www.politico.com/2016-election/results/map/senate/, +"Warner, Mark R.",106,Virginia,VA,Democratic,II,https://www.warner.senate.gov/,https://twitter.com/MarkWarner,MarkWarner,01/06/2009,12/31/2022,0,13.9917808219178,117,0.33022168507113,12/15/1954,https://bioguide.congress.gov/search/bio/W000805 ,0,White,8,J.D.; Harvard Law School; 1980,Businessman,,,56,44,2020,https://edition.cnn.com/election/2020/results/senate, +"Warnock, Raphael G.",107,Georgia,GA,Democratic,III,https://www.warnock.senate.gov/,https://twitter.com/SenatorWarnock,SenatorWarnock,01/20/2021,12/31/2022,0,1.94520547945205,117,0.464158242867696,07/23/1969,https://bioguide.congress.gov/search/bio/W000790,0,African-American,8,PhD in Philosophy; Union Theological Seminary; ,Baptist pastor,,,51,49,2020,https://edition.cnn.com/election/2020/results/senate, +"Warren, Elizabeth",108,Massachusetts,MA,Democratic,,https://www.warren.senate.gov/,https://twitter.com/ewarren,ewarren,01/03/2013,12/31/2022,0,9.9972602739726,,,06/22/1949,https://bioguide.congress.gov/search/bio/W000817 ,1,White,8,J.D.; Rutgers University; 1976,"Educator, Lawyer ",https://twitter.com/SenWarren,,60.4,36.2,2018,https://edition.cnn.com/election/2018/results, +"Whitehouse, Sheldon",109,Rhode Island,RI,Democratic,I,https://www.whitehouse.senate.gov/,https://twitter.com/SenWhitehouse,SenWhitehouse,01/04/2007,12/31/2022,0,16,117,0.124737669119195,10/20/1955,https://bioguide.congress.gov/search/bio/W000802,0,White,8,J.D.; University of Virginia; 1982,Attorney,,,61.6,38.4,2018,https://edition.cnn.com/election/2018/results, +"Wicker, Roger F.",110,Mississippi,MS,Republican,I,https://www.wicker.senate.gov/,https://twitter.com/SenatorWicker,SenatorWicker,12/31/2007,12/31/2022,0,15.0109589041096,117,0.763788502839721,07/05/1951,https://bioguide.congress.gov/search/bio/W000437,0,White,8,J.D.; University of Mississippi; 1975,Judge,,,58.5,39.5,2018,https://edition.cnn.com/election/2018/results, +"Wyden, Ron",111,Oregon,OR,Democratic,III,https://www.wyden.senate.gov/,https://twitter.com/RonWyden,RonWyden,02/05/1996,12/31/2022,0,26.9205479452055,117,0.0591413132623803,05/03/1949,https://bioguide.congress.gov/search/bio/W000779,0,White,8,J.D.; University of Oregon; 1974,Lawyer,,,56.7,33.6,2016,https://www.politico.com/2016-election/results/map/senate/, +"Young, Todd",112,Indiana,IN,Republican,III,https://www.young.senate.gov/,https://twitter.com/SenToddYoung,SenToddYoung,01/05/2011,12/31/2022,1,11.9945205479452,117,0.677696674158218,08/24/1972,https://bioguide.congress.gov/search/bio/Y000064,0,White,8,J.D.; Robert H. McKinney; 2006,Attorney ,,,52.1,42.4,2016,https://www.politico.com/2016-election/results/map/senate/,