diff --git a/collect.py b/collect.py index 662da3e..d692453 100644 --- a/collect.py +++ b/collect.py @@ -1,70 +1,79 @@ -#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' -Created on Tue Jun 6 11:40:07 2023 +Created on Thu Jun 8 01:08:21 2023 -@author: michael +@author: Michael + +Following files are necessary: + config.py + Used to configure everything that's needed for this script. + funs/TimeSlice.py + Function get_Tslices slices the defined timespan in config.py into N + slices. Is necessary due to possible blocking of requests by twitter. + The script will slepp for 1 second after each slice that was scraped. + funs/ClearDupes.py + Function deDupe reads each line of inFile and removes duplicate lines. + A file outFile is saved without the duplicate lines. Generates + "keywords.txt". + data/keywords-raw.txt + Contains all keywords that are used to detect whether a tweet contains + information about Covid19. + data/senators-raw.csv + Contains the senator dataset converted to csv. Is used to get the + account-names of all senators twitter accounts. + +Requirements: + - snscrape 0.6.2.20230321+ + - pandas 2.0+ +The script will first import needed libraries. +This script uses snscrape Version 0.6.2.20230321.dev50+g0d824ab which is +included in 'snscrape/' as a git repository for better reproducibility. Earlier +versions of snscrape will most likely fail to scrape all tweets because of +certain rate limits or other errors that may occur. +config.py will check whether snscrape is already installed. If not, it will try +to install the included version automatically. + +How to use: +- To run the script, first adjust the config.py file. +- config.py will check whether snscrape is already installed. If not, it will try +to install the included version automatically. +- run the script +- The whole script is expected to run without error messages except the +following: + 'Stopping after 20 empty pages': indicates that no more tweets were found and + that the script skips to the next slice/account. + 'return empty in {twitter-handle}-sliceX - from XX to XX': no tweets were + found in that specific time range for that specific twitter account. + +The script will scrape tweets for all senators in 'data/senators-raw.csv' +sliced in 6 time periods (to bypass twitters limitations). It will check whether +a tweet contains any of the keywords in 'data/keywords.txt' and add an indicator +in the datafile. It will then join all slices and create 'ALL-SENATORS.csv' +which is the final output. ''' import os -import tweepy import pandas as pd -import numpy as np import glob import time -## Setup directories -# WD Michael -wd = '/home/michael/Documents/PS/Data/collectTweets/' +## Import other files +from config import * +import snscrape.modules.twitter as sntwitter +from funs.TimeSlice import get_Tslices +from funs.ClearDupes import deDupe -# WD Server -# wd = '/home/yunohost.multimedia/polsoc/Politics & Society/TweetCollection' +## Create List of time-period-slices +time_slices = get_Tslices(ts_beg, ts_end, no_slices) +# Print slices +print('Time-period-slices:') +for slice in time_slices: + print(slice['suffix'] + ': ' + slice['beg_time'] + ' - ' + slice['end_time']) -# 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 -# Define time periods of interest -time_slices = [ - { - 'start_time': '2020-01-01T00:00:00Z', - 'end_time': '2020-06-01T00:00:00Z', - 'suffix': '-slice1' - }, - { - 'start_time': '2020-06-01T00:00:01Z', - 'end_time': '2021-01-01T00:00:00Z', - 'suffix': '-slice2' - }, - { - 'start_time': '2021-01-01T00:00:01Z', - 'end_time': '2021-06-01T00:00:00Z', - 'suffix': '-slice3' - }, - { - 'start_time': '2021-06-01T00:00:01Z', - 'end_time': '2023-01-03T00:00:00Z', - 'suffix': '-slice4' - } -] - -# gather keywords @chenTrackingSocialMedia2020 -# line80 ff: lamsalCoronavirusCOVID19Tweets2020 -# Initialize the keywords list +## Keywords keywords = [] - +# Remove duplicate Keywords and save all non-duplicates to 'data/keywords.txt' +deDupe('data/keywords-raw.txt', 'data/keywords.txt') # Read the keywords from a file with open('data/keywords.txt', 'r') as file: lines = file.readlines() @@ -72,42 +81,21 @@ with open('data/keywords.txt', 'r') as file: 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', - ] - +## Senator Accounts # 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) +## Scraping # Iterate over each Twitter account for handle in accounts: + # Iterate over each time slice for slice_data in time_slices: # define slice data variables from time_slices - start_time = slice_data['start_time'] - end_time = slice_data['end_time'] + ts_beg = slice_data['beg_time'] + ts_end = slice_data['end_time'] suffix = slice_data['suffix'] - # define tweepy query with twitter handle of current sen - query = f'from:{handle} -is:retweet' - # create empty tweetlist that will be filled with tweets of current sen tweetlist = [] @@ -115,121 +103,117 @@ for handle in accounts: msg = f'trying to fetch tweets for {handle}{suffix}' print(msg) - # Fetch tweets using tweepy Twitter API v2 pagination with retry mechanism - max_attempts = 3 # maximum number of attempts to fetch tweets for a slice - attempt = 1 - - while attempt <= max_attempts: - try: - tweets = tweepy.Paginator(client.search_all_tweets, - query=query, - tweet_fields=tweet_fields, - start_time=start_time, - end_time=end_time, - max_results=20).flatten(20) - - # for each tweet returned... - for tweet in tweets: - # ... add that tweet to tweetlist - tweetlist.append(tweet) - - break # exit the retry loop if tweets are successfully fetched - - except tweepy.TweepError as e: - # handle rate limit exceeded error - if e.response.status_code == 429: - # get the rate limit reset time from the response headers - reset_time = int(e.response.headers['x-rate-limit-reset']) - current_time = int(time.time()) - - # calculate the sleep time until the rate limit resets - sleep_time = reset_time - current_time + 1 # add an extra second - - # sleep until the rate limit resets - time.sleep(sleep_time) - - attempt += 1 # increment the attempt counter - continue # retry the API call - - else: - # handle other types of Tweepy errors - print(f'Error occurred: {e}') - break - + # Snscrape query: + query = f'from:{handle} since:{ts_beg} until:{ts_end}' + for i,tweet in enumerate(sntwitter.TwitterSearchScraper(query).get_items()): + if i>maxTweets: + break + tweetlist.append([ + tweet.id, + tweet.user.id, + tweet.user.username, + tweet.user.verified, + tweet.user.created, + tweet.user.favouritesCount, + tweet.user.followersCount, + tweet.user.friendsCount, + tweet.user.url, + tweet.rawContent, + tweet.renderedContent, + tweet.cashtags, + tweet.coordinates, + tweet.hashtags, + tweet.inReplyToTweetId, + tweet.inReplyToUser, + tweet.media, + tweet.mentionedUsers, + tweet.links, + tweet.place, + tweet.quotedTweet, + tweet.retweetedTweet, + tweet.sourceLabel, + tweet.sourceUrl, + tweet.url, + tweet.date, + tweet.replyCount, + tweet.retweetCount, + tweet.likeCount, + tweet.quoteCount, + tweet.conversationId, + tweet.lang, + tweet.source + ]) # Check if no tweets fetched for the current time slice. If there are no tweets, skip to next time_slices loop iteration if len(tweetlist) == 0: - msg = f'return empty in {handle}{suffix} - from {start_time} to {end_time}' + msg = f'return empty in {handle}{suffix} - from {ts_beg} to {ts_end}' print(msg) continue # convert to dataframe - tweet_df = pd.DataFrame(tweetlist) - - # add handle column as api only provides user-ids - tweet_df['handle'] = handle - - ## Extract referenced_tweet info from column - tweet_df['referenced_tweet_type'] = None - tweet_df['referenced_tweet_id'] = None - - # if cond. because in some cases column doesn't exist - if 'referenced_tweets' in tweet_df.columns: - for index, row in tweet_df.iterrows(): - referenced_tweets = row['referenced_tweets'] - - 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'] - - tweet_df.at[index, 'referenced_tweet_type'] = referenced_tweet_type - tweet_df.at[index, 'referenced_tweet_id'] = referenced_tweet_id + tweet_df = pd.DataFrame(tweetlist, columns=[ + 'id', + 'user.id', + 'user.username', + 'user.verified', + 'user.created', + 'user.favouritesCount', + 'user.followersCount', + 'user.friendsCount', + 'user.url', + 'rawContent', + 'renderedContent', + 'cashtags', + 'coordinates', + 'hashtags', + 'inReplyToTweetId', + 'inReplyToUser', + 'media', + 'mentionedUsers', + 'links', + 'place', + 'quotedTweet', + 'retweetedTweet', + 'sourceLabel', + 'sourceUrl', + 'url', + 'date', + 'replyCount', + 'retweetCount', + 'likeCount', + 'quoteCount', + 'conversationId', + 'lang', + 'source']) ## Check if tweet-text contains keyword - # if cond. because in some cases column doesn't exist - if 'text' in tweet_df.columns: - tweet_df['contains_keyword'] = (tweet_df['text'].str.findall('|'.join(keywords)) + tweet_df['contains_keyword'] = '' + tweet_df['contains_keyword'] = (tweet_df['rawContent'].str.findall('|'.join(keywords)) .str.join(',') .replace('', 'none')) - ## Save two versions of the dataset, one with all fields and one without dict fields # define filepaths - csv_path = f'data/tweets/{handle}{suffix}.csv' - csv_path2 = f'data/tweets/{handle}{suffix}-LONG.csv' - # save LONG csv - tweet_df.to_csv(csv_path2) - # Remove 'context_annotations', 'entities' and 'referenced_tweets' columns for short csv files - # if cond. because in some cases column doesn't exist - if all(k in tweet_df for k in ('context_annotations', 'entities', 'referenced_tweets')): - tweet_df = tweet_df.drop(['context_annotations', 'entities', 'referenced_tweets'], axis=1) + csv_path = f'data/tweets/T{handle}{suffix}.csv' # save short csv tweet_df.to_csv(csv_path) - - # sleep 1 second to not exceed the API rate limit + # sleep 1 second to not get blocked because of excessive requests time.sleep(1) - -# 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 +## Merge CSV-Files to file_alltweets +# fastest way is to save the slices seperately and then add every file to the output instead of using pandas or anything else. 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) +tweetfiles = glob.glob('*.{}'.format('csv')) # get list of all csv files in folder +# check if file_alltweets (previously scraped tweets that have been merged into one file) exists, if it exists, remove from list to not include it in the following merge +if file_alltweets in tweetfiles: + tweetfiles.remove(file_alltweets) +# Go through all csv files and merge them into file_alltweets +with open(file_alltweets,"wb") as fout: + # first file (because of the header): + with open(tweetfiles[0], "rb") as f: + fout.write(f.read()) + # other files without the header: + for file in tweetfiles[1:]: + with open(file, "rb") as f: + next(f) # skip the header + fout.write(f.read()) os.chdir(wd) \ No newline at end of file diff --git a/config.py b/config.py new file mode 100644 index 0000000..8500dca --- /dev/null +++ b/config.py @@ -0,0 +1,42 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +''' +Created on Wed Jun 21 13:58:42 2023 + +@author: michael +''' + +## Setup directories +# WD Michael +wd = '/home/michael/Documents/PS/Data/collectTweets/' +# WD Server +# wd = '/home/yunohost.multimedia/polsoc/Politics & Society/TweetCollection/' + +# Tweet-datafile output directory +td = 'data/tweets/' + +# Name of file that all tweets will be written to +file_alltweets = 'ALL-SENATORS-TWEETS.csv' + +path_to_tweetdfs = wd + td + +## Define Timespan +# Format: %Y-%m-%dT%H:%M:%SZ (https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes) +ts_beg = '2020-01-01T00:00:00Z' # start of scraping +ts_end = '2023-01-03T00:00:00Z' # end of straping +no_slices = 24 # Number of slices / time periods. + +# Maximum tweets to be scraped by snscrape. Can be left untouched. +maxTweets = 5000 + + +## Install snscrape from local git repo to make shure that it fits the used version. +# If snscrape is already installed, uncomment the following lines: +''' +import subprocess +os.chdir('snscrape/') +subprocess.check_call([sys.executable, '-m', 'pip', 'install', '-e', '.']) +os.chdir(wd) +''' + + diff --git a/data/keywords-raw.txt b/data/keywords-raw.txt new file mode 100644 index 0000000..01fe9ba --- /dev/null +++ b/data/keywords-raw.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/keywords.txt b/data/keywords.txt index 01fe9ba..b9752bb 100644 --- a/data/keywords.txt +++ b/data/keywords.txt @@ -79,40 +79,22 @@ 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 @@ -121,26 +103,13 @@ 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 @@ -167,7 +136,5 @@ 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 index 7bfb9c9..8703548 100644 --- a/data/senators-raw.csv +++ b/data/senators-raw.csv @@ -1,113 +1,112 @@ -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/, +name,id,state,state_short,party,class,ideology,start_serving,end_serving,time_in_office,not_in_office,last_congress,vote_share,next_closest_share,election_year,twitter_url,twitter_handle,alt_account,alt_handle,date_of_birth,female, ethnicity,edu_level,edu_information,occup_level,website_url,bioguide_link,Comments_1,Comments_2 +"Alexander, Andrew L., Jr.",1,Tennessee,TN,0,2,0.681815808318192,01/07/2003,01/03/2021,18.0027397260274,1,116,61.9,31.8,2014,https://twitter.com/SenAlexander,SenAlexander,https://twitter.com/LamarAlexander ,LamarAlexander ,07/03/1940,0,White,8,J.D.; New York Univeristy; 1965,2,N/A,https://bioguide.congress.gov/search/bio/A000360,, +"Enzi, Mike",2,Wyoming,WY,0,2,0.719285383539398,01/03/1997,01/03/2021,24,1,116,72.3,17.6,2014,https://twitter.com/senatorenzi?lang=zh-Hant ,SenatorEnzi,N/A,N/A,02/01/1944,0,White,7,M.B.A.; Retail Marketing; Denver University; 1968,4,N/A,https://bioguide.congress.gov/search/bio/E000285,, +"Gardner, Cory",3,Colorado,CO,0,2,0.719285383539398,01/06/2015,01/03/2021,5.9972602739726,1,116,48.5,46,2014,https://twitter.com/CoryGardner,CoryGardner,https://twitter.com/corygardner,corygardner,08/22/1974,0,White,8,"J.D.; University of Colorado, Boulder; 2001",2,N/A,https://bioguide.congress.gov/search/bio/G000562,, +"Harris, Kamala",4,California ,CA,1,3,0.0213759569468058,01/03/2017,01/18/2021,4.04383561643836,1,116,62.4,37.6,2016,https://twitter.com/VP,VP,https://twitter.com/KamalaHarris,KamalaHarris,10/20/1964,1,African-American; Asian-American,8,J.D.; University of California; 1989,2,N/A,https://bioguide.congress.gov/search/bio/H001075,(became VP on jan 20 2021), +"Isakson, John",5,Georgia,GA,0,3,*,01/03/2005,12/31/2019,14,1,116,55,40.8,2016,https://twitter.com/SenatorIsakson ,SenatorIsakson,N/A,N/A,12/28/1944,0,White,6,"University of Georgia, Athens; 1966",1,N/A,https://bioguide.congress.gov/search/bio/I000055,(died in 2019), +"Jones, Gordon Douglas",6,Alabama,AL,1,2,0.632885678298333,01/03/2018,01/03/2021,3.0027397260274,1,116,49.9,48.4,2017,https://twitter.com/DougJones,DougJones,N/A,N/A,05/04/1954,0,White,8,"J.D.; Samford University, Cumberland School of Law; 1979",2,N/A,https://bioguide.congress.gov/search/bio/J000300/,special election to replace Jeff Sessions, +"Loeffler, Kelly",7,Georgia,GA,0,2,0.904293903291947,01/06/2020,01/20/2021,1.04109589041096,1,116,N/A,N/A,*,https://twitter.com/KLoeffler,KLoeffler,https://twitter.com/senatorloeffler ,senatorloeffler ,11/27/1970,1,White,7,M.B.A.; Internationla Finance and Marketing; DePaul University Chicago; 1999,1,N/A,https://bioguide.congress.gov/search/bio/L000594,Appointed in 2019 after the resignation of Johnny Isakson but lost the 2020 election, +"McSally, Martha",8,Arizona,AZ,0,2,*,01/03/2015,01/03/2019,1,1,116,N/A,N/A,*,https://twitter.com/MarthaMcSallyAZ,MarthaMcSallyAZ,https://twitter.com/marthamcsally,marthamcsally,03/22/1966,1,White,7,M.P.P.; John F. Kennedy School of Government,3,N/A,https://bioguide.congress.gov/search/bio/M001197,(left office Dec 2 2020),appointed in 2018 after death of John McCain but lot 2020 election +"Perdue, David",9,Georgia,GA,0,2,0.914979462126755,01/06/2015,01/03/2021,5.9972602739726,1,116,53,45.1,2014,https://twitter.com/DavidPerdueGA,DavidPerdueGA,https://twitter.com/sendavidperdue,sendavidperdue,12/10/1949,0,White,7,M.S.; Georgia Institute of Technology; 1976,1,N/A,https://bioguide.congress.gov/search/bio/P000612,, +"Roberts, Charles Patrick",10,Kansas,KS,0,2,0.822995787870405,01/07/1997,01/03/2021,24.0054794520548,1,116,53.3,42.5,2014,https://twitter.com/SenPatRoberts,SenPatRoberts,https://twitter.com/PatRoberts,PatRoberts,04/20/1936,0,White,6,"B.A.; Kansas State university, Manhattan; 1958",7,N/A,https://bioguide.congress.gov/search/bio/R000307,, +"Udall, Tom",11,New Mexico,NM,1,2,0.259828450248573,01/06/2009,01/03/2021,12,1,116,55.4,44.6,2014,https://twitter.com/SenatorTomUdall,SenatorTomUdall,https://twitter.com/tomudall,tomudall,05/18/1948,0,White,8,"J.D.; University of New Mexico School of Law, Albuquerque, N.M.; 1977",2,N/A,https://bioguide.congress.gov/search/bio/U000039,, +"Baldwin, Tammy",12,Wisconsin,WI,1,1,0.176999238019796,01/03/2013,12/31/2022,9.9972602739726,0,117,55.4,44.6,2018,https://twitter.com/SenatorBaldwin,SenatorBaldwin,https://twitter.com/tammybaldwin,tammybaldwin,02/11/1962,1,White,8,"J.D.; University of Wisconsin, Madison; 1989",2,https://www.baldwin.senate.gov/,https://bioguide.congress.gov/search/bio/B001230,, +"Barrasso, John",13,Wyoming,WY,0,1,0.817902617377421,06/22/2007,12/31/2022,15.5369863013699,0,117,67.1,30.1,2018,https://twitter.com/SenJohnBarrasso,SenJohnBarrasso,https://twitter.com/barrassoforwyo,barrassoforwyo,07/21/1952,0,White,7,M.D.; Georgetown University School of Medicine; 1978,6,https://www.barrasso.senate.gov/,https://bioguide.congress.gov/search/bio/B001261,, +"Bennet, Michael F.",14,Colorado,CO,1,3,0.248044568735702,01/21/2009,12/31/2022,13.9506849315069,0,117,49.1,45.4,2016,https://twitter.com/SenatorBennet,SenatorBennet,https://twitter.com/michaelbennet,michaelbennet,11/28/1964,0,White,8,J.D.; Yale Law School; 1993,2,https://www.bennet.senate.gov/,https://bioguide.congress.gov/search/bio/B001267,, +"Blackburn, Marsha",15,Tennessee,TN,0,1,0.93228239890635,01/03/2019,12/31/2022,3.99452054794521,0,117,54.7,43.9,2018,https://twitter.com/MarshaBlackburn,MarshaBlackburn,N/A,N/A,06/06/1952,1,White,6,"B.S.; Home Economics; Mississippi State University, Starkville; 1973",1,https://www.blackburn.senate.gov/,https://bioguide.congress.gov/search/bio/B001243,, +"Blumenthal, Richard",16,Connecticut,CT,1,3,0.0310655954121906,01/03/2010,12/31/2022,13,0,117,62.9,34.9,2016,https://twitter.com/SenBlumenthal,SenBlumenthal,N/A,N/A,02/13/1946,0,White,8,J.D.; Yale University; 1973,2,https://www.blumenthal.senate.gov/,https://bioguide.congress.gov/search/bio/B001277,, +"Blunt, Roy",17,Missouri,MO,0,3,0.584409139223541,01/03/2011,12/31/2022,12,1,117,49.4,46.2,2016,https://twitter.com/RoyBlunt,RoyBlunt,N/A,N/A,01/10/1950,0,White,7,"M.A.; Missouri State University ,Springfield; 1972",5,N/A,https://bioguide.congress.gov/search/bio/B000575,, +"Booker, Cory A.",18,New Jersey,NJ,1,2,0.0455802980872292,10/31/2013,12/31/2022,12,0,117,57.2,40.9,2020,https://twitter.com/senbooker,senbooker,https://twitter.com/CoryBooker,CoryBooker,04/27/1969,0,African-American; Asian-American,8,J.D.; Yale Law School; 1997,2,https://www.booker.senate.gov/,https://bioguide.congress.gov/search/bio/B001288,, +"Boozman, John",19,Arkansas,AR,0,3,0.768699282926499,01/05/2011,12/31/2022,11.9945205479452,0,117,59.8,36.2,2016,https://twitter.com/JohnBoozman,JohnBoozman,N/A,N/A,12/10/1950,0,White,6,Southern College of Optometry; 1977,6,https://www.boozman.senate.gov/,https://bioguide.congress.gov/search/bio/B001236,, +"Braun, Michael",20,Indiana,IN,0,1,0.98106874319906,01/03/2019,12/31/2022,3.99452054794521,0,117,50.9,45,2018,https://twitter.com/SenatorBraun,SenatorBraun,N/A,N/A,03/24/1954,0,White,7,M.B.A.; Harvard Business School; 1978,1,https://www.braun.senate.gov/,https://bioguide.congress.gov/search/bio/B001310,, +"Brown, Sherrod",21,Ohio,OH,1,1,0.0923940264109351,01/04/2007,12/31/2022,16,0,117,53.4,46.6,2018,https://twitter.com/SenSherrodBrown,SenSherrodBrown,https://twitter.com/SherrodBrown,SherrodBrown,11/09/1952,0,White,7,M.a.; Education; Ohio State University; 1981,5,https://www.brown.senate.gov/,https://bioguide.congress.gov/search/bio/B000944,, +"Burr, Richard",22,North Carolina,NC,0,3,0.605472891780936,01/03/2001,12/31/2022,22.0054794520548,1,117,51.1,45.3,2016,https://twitter.com/SenatorBurr,SenatorBurr,N/A,N/A,11/30/1955,0,White,6,B.A.; Communications; Wake Forest University; 1978,1,N/A,https://bioguide.congress.gov/search/bio/B001135,, +"Cantwell, Maria",23,Washington,WA,1,1,0.216591445478212,01/03/2001,12/31/2022,22.0054794520548,0,117,58.4,41.6,2018,https://twitter.com/SenatorCantwell,SenatorCantwell,N/A,N/A,10/13/1958,1,White,6,B.A.; Public Administration; Miami University of Ohio; 1980,1,https://www.cantwell.senate.gov/,https://bioguide.congress.gov/search/bio/C000127,, +"Capito, Shelley Moore",24,West Virginia,WV,0,2,0.61478303011512,01/06/2015,12/31/2022,7.98904109589041,0,117,70.3,27,2020,https://twitter.com/SenCapito,SenCapito,N/A,N/A,11/26/1953,1,White,7,M. Ed.; University of Virginia; 1976,5,https://www.capito.senate.gov/,https://bioguide.congress.gov/search/bio/C001047,, +"Cardin, Benjamin L.",25,Maryland,MD,1,1,0.1994990268606,01/04/2007,12/31/2022,16,0,117,64.9,30.3,2018,https://twitter.com/SenatorCardin,SenatorCardin,N/A,N/A,10/05/1943,0,White,8,J.D.; University of Maryland; 1967,2,https://www.cardin.senate.gov/,https://bioguide.congress.gov/search/bio/C000141,, +"Carper, Thomas R.",26,Delaware,DE,1,1,0.309479384969288,01/03/2001,12/31/2022,22.0054794520548,0,117,60,37.8,2018,https://twitter.com/SenatorCarper,SenatorCarper,N/A,N/A,01/23/1947,0,White,7,M.B.A.; University of Delaware; 1975,3,https://www.carper.senate.gov/,https://bioguide.congress.gov/search/bio/C000174,, +"Casey, Robert P., Jr.",27,Pennsylvania,PA,1,1,0.171897216341815,01/04/2007,12/31/2022,16,0,117,55.7,42.6,2018,https://twitter.com/SenBobCasey,SenBobCasey,https://twitter.com/Bob_Casey,Bob_Casey,04/13/1960,0,White,8,J.D.; Catholic University of America; 1988,2,https://www.casey.senate.gov/,https://bioguide.congress.gov/search/bio/C001070,, +"Cassidy, Bill",28,Louisiana,LA,0,2,0.682348710788942,01/06/2015,12/31/2022,7.98904109589041,0,117,59.3,19,2020,https://twitter.com/SenBillCassidy,SenBillCassidy,https://twitter.com/BillCassidy,BillCassidy,09/28/1957,0,White,7,M.D.; Louisiana State University; 1979,6,https://www.cassidy.senate.gov/,https://bioguide.congress.gov/search/bio/C001075,, +"Collins, Susan M.",29,Maine,ME,0,2,0.448622425849401,01/07/1997,12/31/2022,25.9972602739726,0,117,51,42.4,2020,https://twitter.com/SenatorCollins,SenatorCollins,N/A,N/A,12/07/1952,1,White,6,Bachelor in Government; St. Lawrence University; 1975,0,https://www.collins.senate.gov/,https://bioguide.congress.gov/search/bio/C001035,, +"Coons, Christopher A.",30,Delaware,DE,1,2,0.338422715351401,11/15/2010,12/31/2022,12.1342465753425,0,117,59.4,37.9,2020,https://twitter.com/ChrisCoons,ChrisCoons,N/A,N/A,09/09/1963,0,White,8,J.D.; Yale Law School; 1992,2,https://www.coons.senate.gov/,https://bioguide.congress.gov/search/bio/C001088,, +"Cornyn, John",31,Texas,TX,0,2,0.772226738391321,11/30/2002,12/31/2022,20.0986301369863,0,117,53.5,43.9,2020,https://twitter.com/JohnCornyn,JohnCornyn,N/A,N/A,02/02/1952,0,White,8,J.D.; St. Mary�s School of Law; 1977,2,https://www.cornyn.senate.gov/,https://bioguide.congress.gov/search/bio/C001056,, +"Cortez Masto, Catherine",32,Nevada,NV,1,3,0.236574567369409,01/03/2017,12/31/2022,5.99452054794521,0,117,47.1,44.7,2016,https://twitter.com/SenCortezMasto,SenCortezMasto,https://twitter.com/CortezMasto,CortezMasto,03/29/1964,1,Hispanic; White,8,J.D.; Gonzaga University School of Law; 1990,2,https://www.cortezmasto.senate.gov/,https://bioguide.congress.gov/search/bio/C001113,, +"Cotton, Tom",33,Arkansas,AR,0,2,0.876390364042756,01/06/2015,12/31/2022,7.98904109589041,0,117,66.5,33.5,2020,https://twitter.com/SenTomCotton,SenTomCotton,https://twitter.com/TomCottonAR,TomCottonAR,05/13/1977,0,White,8,J.D.; Harvard University; 2002,2,https://www.cotton.senate.gov/,https://bioguide.congress.gov/search/bio/C001095,, +"Cramer, Kevin",34,North Dakota,ND,0,1,0.910896298032277,01/03/2019,12/31/2022,3.99452054794521,0,117,55.5,44.5,2018,https://twitter.com/SenKevinCramer,SenKevinCramer,https://twitter.com/kevincramer,kevincramer,01/21/1961,0,White,7,M.A.; Management; University o fMary; 2003,0,https://www.cramer.senate.gov/,https://bioguide.congress.gov/search/bio/C001096,, +"Crapo, Michael",35,Idaho,ID,0,3,0.823331951918519,01/06/1999,12/31/2022,24,0,117,66.1,27.8,2016,https://twitter.com/MikeCrapo,MikeCrapo,N/A,N/A,05/20/1951,0,White,8,J.D.; Harvard University; 1977,2,https://www.crapo.senate.gov/,https://bioguide.congress.gov/search/bio/C000880,, +"Cruz, Ted",36,Texas,TX,0,1,0.944056385174951,01/03/2013,12/31/2022,9.9972602739726,0,117,50.9,48.3,2018,https://twitter.com/SenTedCruz,SenTedCruz,https://twitter.com/tedcruz,tedcruz,12/22/1970,0,Hispanic; White,8,J.D.; Harvard University; 1995,2,https://www.cruz.senate.gov/,https://bioguide.congress.gov/search/bio/C001098,, +"Daines, Steve",37,Montana,MT,0,2,0.859322244752884,01/06/2015,12/31/2022,7.98904109589041,0,117,55,45,2020,https://twitter.com/SteveDaines,SteveDaines,N/A,N/A,08/20/1962,0,White,6,B.S.; Chemical Engineering; Montana State University; 1984,1,https://www.daines.senate.gov/,https://bioguide.congress.gov/search/bio/D000618,, +"Duckworth, Tammy",38,Illinois,IL,1,3,0.0944404184553066,01/03/2017,12/31/2022,5.99452054794521,0,117,54.4,40.2,2016,https://twitter.com/SenDuckworth,SenDuckworth,https://twitter.com/tammyduckworth,tammyduckworth,03/12/1968,1,Asian; White,8,PhD in human services; Capella University School of Public Service Leadership; 2015,3,https://www.duckworth.senate.gov/,https://bioguide.congress.gov/search/bio/D000622,, +"Durbin, Richard J.",39,Illinois,IL,1,2,0.0855733771029607,01/07/1997,12/31/2022,25.9972602739726,0,117,54.9,38.9,2020,https://twitter.com/SenatorDurbin,SenatorDurbin,https://twitter.com/DickDurbin,DickDurbin,11/21/1944,0,White,8,J.D.; Georgetown University; 1969,2,https://www.durbin.senate.gov/,https://bioguide.congress.gov/search/bio/D000563,, +"Ernst, Joni",40,Iowa,IA,0,2,0.826265400967212,01/06/2015,12/31/2022,7.98904109589041,0,117,51.8,45.2,2020,https://twitter.com/SenJoniErnst,SenJoniErnst,https://twitter.com/joniernst,joniernst,07/01/1970,1,White,7,M.P.A.; Columbus State University; 1995,3,https://www.ernst.senate.gov/,https://bioguide.congress.gov/search/bio/E000295,, +"Feinstein, Dianne",41,California,CA,1,1,0.150865658191444,11/10/1992,12/31/2022,30.158904109589,0,117,54.2,45.8,2018,https://twitter.com/SenFeinstein,SenFeinstein,https://twitter.com/DianneFeinstein,DianneFeinstein,06/22/1933,1,White,6,B.A.; History; Stanford University; 1955,0,https://www.feinstein.senate.gov/public/,https://bioguide.congress.gov/search/bio/F000062,, +"Fischer, Debra",42,Nebraska,NE,0,1,0.688576408222131,01/03/2013,12/31/2022,9.9972602739726,0,117,57.7,38.6,2018,https://twitter.com/SenatorFischer,SenatorFischer,N/A,N/A,03/01/1951,1,White,6,B.S.; Education; University of Nebraska; 1988,0,https://www.fischer.senate.gov/,https://bioguide.congress.gov/search/bio/F000463,, +"Gillibrand, Kirsten E.",43,New York,NY,1,1,0.12072202063417,01/27/2009,12/31/2022,13.9342465753425,0,117,67,33,2018,https://twitter.com/SenGillibrand,SenGillibrand,https://twitter.com/gillibrandny,gillibrandny,12/09/1966,1,White,8,J.D.; University of California; 1991,2,https://www.gillibrand.senate.gov/,https://bioguide.congress.gov/search/bio/G000555,, +"Graham, Lindsey",44,South Carolina,SC,0,2,0.619070797359753,01/07/2003,12/31/2022,19.9945205479452,0,117,54.5,44.2,2020,https://twitter.com/LindseyGrahamSC,LindseyGrahamSC,https://twitter.com/grahamblog,grahamblog,07/09/1955,0,White,8,J.D.; University of South Carolina; 1981,2,https://www.lgraham.senate.gov/,https://bioguide.congress.gov/search/bio/G000359 ,, +"Grassley, Chuck",45,Iowa,IA,0,3,0.670073592619545,01/05/1981,12/31/2022,42.013698630137,0,117,60.2,35.7,2016,https://twitter.com/ChuckGrassley,ChuckGrassley,N/A,N/A,09/17/1933,0,White,7,M.A.; Political Science; University of Northern Iowa; 1956,0,https://www.grassley.senate.gov/,https://bioguide.congress.gov/search/bio/G000386,, +"Hagerty, Bill",46,Tennessee,TN,0,2,0.857410027434407,01/03/2021,12/31/2022,1.99178082191781,0,117,62.2,35.2,2020,https://twitter.com/SenatorHagerty,SenatorHagerty,https://twitter.com/billhagertytn,billhagertytn,08/14/1959,0,White,8,J.D.; Vanderbilt Law School; 1984,0,https://www.hagerty.senate.gov/,https://bioguide.congress.gov/search/bio/H000601,, +"Hassan, Margaret Wood",47,New Hampshire,NH,1,3,0.43611907238278,01/03/2017,12/31/2022,5.99452054794521,0,117,48,47.9,2016,https://twitter.com/SenatorHassan,SenatorHassan,https://twitter.com/Maggie_Hassan,Maggie_Hassan,02/27/1958,1,White,8,J.D.; Northeastern University School of law; 1985,11,https://www.hassan.senate.gov/,https://bioguide.congress.gov/search/bio/H001076,, +"Hawley, Josh",48,Missouri,MO,0,1,0.864366195602263,01/03/2019,12/31/2022,3.99452054794521,0,117,51.4,45.6,2018,https://twitter.com/HawleyMO,HawleyMO,N/A,N/A,12/31/1979,0,White,8,J.D.; Yale Law School; 2006,2,https://www.hawley.senate.gov/,https://bioguide.congress.gov/search/bio/H001089,, +"Heinrich, Martin",49,New Mexico,NM,1,1,0.2007037353465,01/03/2013,12/31/2022,9.9972602739726,0,117,54.1,30.5,2018,https://twitter.com/MartinHeinrich,MartinHeinrich,N/A,N/A,10/17/1971,0,White,6,B.S.; Mechanical Engineering; University of Missouri; 1995,12,https://www.heinrich.senate.gov/,https://bioguide.congress.gov/search/bio/H001046,, +"Hickenlooper, John W.",50,Colorado,CO,1,2,0.335030323955882,01/03/2021,12/31/2022,1.99178082191781,0,117,53.5,44.2,2020,https://twitter.com/SenatorHick,SenatorHick,https://twitter.com/hickenlooper,hickenlooper,02/07/1952,0,White,7,M.A.; Geology; Wesleyan University; 1980,0,https://www.hickenlooper.senate.gov/,https://bioguide.congress.gov/search/bio/H000273,, +"Hirono, Mazie K.",51,Hawaii,HI,1,1,0.0715447123166643,01/03/2013,12/31/2022,9.9972602739726,0,117,71.2,28.8,2018,https://twitter.com/maziehirono,maziehirono,https://twitter.com/mazieforhawaii,mazieforhawaii,11/03/1947,1,Asian,8,J.D.; Georgetown University; 1978,0,https://www.hirono.senate.gov/,https://bioguide.congress.gov/search/bio/H001042,, +"Hoeven, John",52,North Dakota,ND,0,3,0.815683863264003,01/05/2011,12/31/2022,11.9945205479452,0,117,78.6,17,2016,https://twitter.com/SenJohnHoeven,SenJohnHoeven,N/A,N/A,03/13/1957,0,White,7,M.B.A.; Northwestern University; 1981,12,https://www.hoeven.senate.gov/,https://bioguide.congress.gov/search/bio/H001061,, +"Hyde-Smith, Cindy",53,Mississippi,MS,0,2,0.868059764299163,04/09/2018,12/31/2022,4.73150684931507,0,117,54.1,44.1,2020,https://twitter.com/SenHydeSmith,SenHydeSmith,https://twitter.com/cindyhydesmith,cindyhydesmith,05/10/1959,1,White,6,"B.A.; Criminal justice, political science; University of Southern Mississippi; 1981",0,https://www.hydesmith.senate.gov/,https://bioguide.congress.gov/search/bio/H001079 ,, +"Inhofe, James",54,Oklahoma,OK,0,2,0.880238318204784,11/17/1994,12/31/2022,28.1397260273973,1,117,62.9,32.8,2020,https://twitter.com/JimInhofe,JimInhofe,N/A,N/A,11/17/1934,0,White,6,B.A.; Economics; University of Tulsa; 1973,0,N/A,https://bioguide.congress.gov/search/bio/I000024 ,, +"Johnson, Ron",55,Wisconsin,WI,0,3,0.743401705863958,01/05/2011,12/31/2022,11.9945205479452,0,117,50.2,46.8,2016,https://twitter.com/SenRonJohnson,SenRonJohnson,https://twitter.com/ronjohnsonwi,ronjohnsonwi,04/08/1955,0,White,6,B.S.; Business and Accounting; University of Minnesota; 1977,4,https://www.ronjohnson.senate.gov/,https://bioguide.congress.gov/search/bio/J000293,, +"Kaine, Tim",56,Virginia,VA,1,1,0.203600708089391,01/03/2013,12/31/2022,9.9972602739726,0,117,57.1,41.1,2018,https://twitter.com/timkaine,timkaine,N/A,N/A,02/26/1958,0,White,8,J.D.; Harvard University; 1983,11,https://www.kaine.senate.gov/,https://bioguide.congress.gov/search/bio/K000384,, +"Kelly, Mark",57,Arizona,AZ,1,3,0.399793347847799,12/02/2020,12/31/2022,2.07945205479452,0,117,51.2,48.8,2020,https://twitter.com/SenMarkKelly,SenMarkKelly,https://twitter.com/CaptMarkKelly,CaptMarkKelly,02/21/1964,0,White,7,M.S.; Aeronautical Engineering; U.S. Naval Postgraduate School,3,https://www.kelly.senate.gov/,https://bioguide.congress.gov/search/bio/K000377,, +"Kennedy, John Neely",58,Louisiana,LA,0,3,0.785684351248518,01/03/2017,12/31/2022,5.99452054794521,0,117,60.7,39.3,2016,https://twitter.com/SenJohnKennedy,SenJohnKennedy,https://twitter.com/JohnKennedyLA,JohnKennedyLA,11/21/1951,0,White,8,J.D.; University of Virginia School of LAw; 1977,11,https://www.kennedy.senate.gov/,https://bioguide.congress.gov/search/bio/K000393,, +"King, Angus S., Jr.",59,Maine,ME,2,1,0.346033257048853,01/03/2013,12/31/2022,9.9972602739726,0,117,54.3,35.2,2018,https://twitter.com/SenAngusKing,SenAngusKing,N/A,N/A,03/31/1944,0,White,8,J.D.; University of Virginia; 1969,2,https://www.king.senate.gov/,https://bioguide.congress.gov/search/bio/K000383 ,, +"Klobuchar, Amy",60,Minnesota,MN,1,1,0.130504324943533,01/04/2007,12/31/2022,16,0,117,60.3,36.2,2018,https://twitter.com/SenAmyKlobuchar,SenAmyKlobuchar,https://twitter.com/amyklobuchar,amyklobuchar,05/25/1960,1,White,8,"J.D.; University of Chicago, 1985",2,https://www.klobuchar.senate.gov/,https://bioguide.congress.gov/search/bio/K000367 ,, +"Lankford, James",61,Oklahoma,OK,0,3,0.89992933687588,01/03/2015,12/31/2022,7.9972602739726,0,117,67.7,24.6,2016,https://twitter.com/SenatorLankford,SenatorLankford,https://twitter.com/jameslankford,jameslankford,03/04/1968,0,White,7,M.Div.; Southwestern Theological Baptist Seminary; 1994,5,https://www.lankford.senate.gov/,https://bioguide.congress.gov/search/bio/L000575,, +"Leahy, Patrick",62,Vermont,VT,1,3,0.144121081911654,01/14/1975,12/31/2022,47.9945205479452,1,117,61.3,33,2016,https://twitter.com/SenatorLeahy,SenatorLeahy,N/A,N/A,03/31/1940,0,White,8,J.D.; Georgetown University; 1964,2,N/A,https://bioguide.congress.gov/search/bio/L000174,, +"Lee, Mike",63,Utah,UT,0,3,0.753748787807473,01/05/2011,12/31/2022,11.9945205479452,0,117,68,27.4,2016,https://twitter.com/SenMikeLee,SenMikeLee,https://twitter.com/BasedMikeLee,BasedMikeLee,06/04/1971,0,White,8,J.D.; Brigham Young university; 1997,2,https://www.lee.senate.gov/,https://bioguide.congress.gov/search/bio/L000577,, +"Luj�n, Ben Ray",64,New Mexico,NM,1,2,0.174860888138848,01/03/2021,12/31/2022,1.99178082191781,0,117,51.7,45.6,2020,https://twitter.com/SenatorLujan,SenatorLujan,https://twitter.com/benraylujan,benraylujan,06/07/1972,0,Hispanic,6,B.B.A.; New Mexico Highlands University; 2007,0,https://www.lujan.senate.gov/,https://bioguide.congress.gov/search/bio/L000570 ,, +"Lummis, Cynthia M.",65,Wyoming,WY,0,2,0.893292958108508,01/03/2021,12/31/2022,1.99178082191781,0,117,73.1,26.9,2020,https://twitter.com/SenLummis,SenLummis,https://twitter.com/CynthiaMLummis,CynthiaMLummis,09/10/1954,1,White,8,"J.D.; University of Wyoming College of Law, Laramie, Wyo.; 1985",11,https://www.lummis.senate.gov/,https://bioguide.congress.gov/search/bio/L000571 ,, +"Manchin, Joe, III",66,West Virginia,WV,1,1,0.446686774398077,11/15/2010,12/31/2022,12.1342465753425,0,117,49.6,46.3,2018,https://twitter.com/Sen_JoeManchin,Sen_JoeManchin,https://twitter.com/JoeManchinWV,JoeManchinWV,08/24/1947,0,White,6,B.A.; Business Administration; West Virginia University; 1970,12,https://www.manchin.senate.gov/,https://bioguide.congress.gov/search/bio/M001183 ,, +"Markey, Edward J.",67,Massachusetts,MA,1,2,0.0139659683705929,07/16/2013,12/31/2022,9.46575342465753,0,117,66.2,33,2020,https://twitter.com/SenMarkey,SenMarkey,https://twitter.com/edmarkey,edmarkey,07/11/1946,0,White,8,J.D.; Boston College Law School; 1972,11,https://www.markey.senate.gov/,https://bioguide.congress.gov/search/bio/M000133,, +"Marshall, Roger",68,Kansas,KS,0,2,0.882124792228652,01/03/2021,12/31/2022,1.99178082191781,0,117,53.2,41.8,2020,https://twitter.com/SenatorMarshall,SenatorMarshall,https://twitter.com/RogerMarshallMD,RogerMarshallMD,08/09/1960,0,White,7,M.D.; University of Kansas School of Medicine; 1987,6,https://www.marshall.senate.gov/,https://bioguide.congress.gov/search/bio/M001198,, +"McConnell, Mitch",69,Kentucky,KY,0,2,0.599687533584357,01/03/1985,12/31/2022,38.0164383561644,0,117,57.8,38.2,2020,https://twitter.com/LeaderMcConnell,LeaderMcConnell,N/A,N/A,02/20/1942,0,White,8,J.D.; Kentucky Law School; 1967,11,https://www.mcconnell.senate.gov/,https://bioguide.congress.gov/search/bio/M000355,, +"Menendez, Robert",70,New Jersey,NJ,1,1,0.191515157461704,01/18/2006,12/31/2022,16.9616438356164,0,117,54,42.8,2018,https://twitter.com/SenatorMenendez,SenatorMenendez,N/A,N/A,01/01/1954,0,Hispanic,8,J.D.; Rutgers university of Law; 1979,11,https://www.menendez.senate.gov/,https://bioguide.congress.gov/search/bio/M000639,, +"Merkley, Jeff",71,Oregon,OR,1,2,0.0355414098997263,01/06/2009,12/31/2022,13.9917808219178,0,117,56.9,39.3,2020,https://twitter.com/SenJeffMerkley,SenJeffMerkley,https://twitter.com/jeffmerkley,jeffmerkley,10/24/1956,0,White,7,M.P.A.; Princeton University; 1982,0,https://www.merkley.senate.gov/,https://bioguide.congress.gov/search/bio/M001176,, +"Moran, Jerry",72,Kansas,KS,0,3,0.716270292467902,01/05/2011,12/31/2022,11.9945205479452,0,117,62.4,32.1,2016,https://twitter.com/JerryMoran,JerryMoran,N/A,N/A,05/29/1954,0,White,8,J.D.; Kansas University School of Law; 1981,11,https://www.moran.senate.gov/public/,https://bioguide.congress.gov/search/bio/M000934 ,, +"Murkowski, Lisa",73,Alaska,AK,0,3,0.473296745648617,12/20/2002,12/31/2022,20.0438356164384,0,117,44.3,29.5,2016,https://twitter.com/lisamurkowski,lisamurkowski,https://twitter.com/lisaforsenate,lisaforsenate,05/22/1957,1,White,8,J.D.; Willamette College of Law; 1985,2,https://www.murkowski.senate.gov/,https://bioguide.congress.gov/search/bio/M001153,, +"Murphy, Christopher",74,Connecticut,CT,1,1,0.152635018959264,01/03/2013,12/31/2022,9.9972602739726,0,117,59.5,39.4,2018,https://twitter.com/ChrisMurphyCT,ChrisMurphyCT,N/A,N/A,08/03/1973,0,White,8,J.D.; University of Connecticut; 2002,11,https://www.murphy.senate.gov/,https://bioguide.congress.gov/search/bio/M001169,, +"Murray, Patty",75,Washington,WA,1,3,0.142703588817088,01/05/1993,12/31/2022,30.0054794520548,0,117,59.1,40.9,2016,https://twitter.com/PattyMurray,PattyMurray,https://twitter.com/murraycampaign,murraycampaign,10/11/1950,1,White,6,B.A.; Physical Education; Washington State University; 1972,5,https://www.murray.senate.gov/,https://bioguide.congress.gov/search/bio/M001111,, +"Ossoff, Jon",76,Georgia,GA,1,2,0.303405364928085,01/20/2021,12/31/2022,1.94520547945205,0,117,50.6,49.4,2020,https://twitter.com/SenOssoff,SenOssoff,https://twitter.com/ossoff,ossoff,02/16/1987,0,White,7,M.S.; International Politicla Economy; London School of Economics; 2013,7,https://www.ossoff.senate.gov/,https://bioguide.congress.gov/search/bio/O000174,, +"Padilla, Alex",77,California,CA,1,3,0.0200324383981554,01/20/2021,12/31/2022,1.94520547945205,0,117,N/A,N/A,*,https://twitter.com/SenAlexPadilla,SenAlexPadilla,https://twitter.com/AlexPadilla4CA,AlexPadilla4CA,03/22/1973,0,Hispanic,6,B.S.; Mechanical Engineering; MIT; 1994,9,https://www.padilla.senate.gov/,https://bioguide.congress.gov/search/bio/P000145,appointed in 2020 to replace Kamala Harris , +"Paul, Rand",78,Kentucky,KY,0,3,0.684883322748808,01/05/2011,12/31/2022,11.9945205479452,0,117,57.3,42.7,2016,https://twitter.com/senrandpaul,senrandpaul,https://twitter.com/RandPaul,RandPaul,01/07/1963,0,White,7,M.D.; Duke University; 1988,6,https://www.paul.senate.gov/,https://bioguide.congress.gov/search/bio/P000603,, +"Peters, Gary C.",79,Michigan,MI,1,2,0.355796587683312,01/06/2015,12/31/2022,7.98904109589041,0,117,49.9,48.2,2020,https://twitter.com/SenGaryPeters,SenGaryPeters,https://twitter.com/garypeters,garypeters,12/01/1958,0,White,8,J.D.; Wayne State University; 1989,2,https://www.peters.senate.gov/,https://bioguide.congress.gov/search/bio/P000595,, +"Portman, Robert",80,Ohio,OH,0,3,0.548120690430407,01/05/2011,12/31/2022,11.9945205479452,1,117,58.3,36.9,2016,https://twitter.com/senrobportman,senrobportman,N/A,N/A,12/19/1955,0,White,8,J.D.; University of Michigan; 1985,2,N/A,https://bioguide.congress.gov/search/bio/P000449,, +"Reed, John F.",81,Rhode Island,RI,1,2,0.145861826443275,01/07/1997,12/31/2022,25.9972602739726,0,117,66.6,33.4,2020,https://twitter.com/SenJackReed,SenJackReed,N/A,N/A,11/12/1949,0,White,8,J.D.; Harvard University; 1982,2,https://www.reed.senate.gov/,https://bioguide.congress.gov/search/bio/R000122,, +"Risch, James E.",82,Idaho,ID,0,2,0.82910906209038,01/06/2009,12/31/2022,13.9917808219178,0,117,62.6,33.2,2020,https://twitter.com/SenatorRisch,SenatorRisch,N/A,N/A,05/03/1943,0,White,8,J.D.; University of Idaho; 1968,2,https://www.risch.senate.gov/,https://bioguide.congress.gov/search/bio/R000584,, +"Romney, Mitt",83,Utah,UT,0,1,0.596688837978771,01/03/2019,12/31/2022,3.99452054794521,0,117,62.6,30.9,2018,https://twitter.com/SenatorRomney,SenatorRomney,https://twitter.com/mittromney,mittromney,03/12/1947,0,White,7,M.B.A.; Harvard Business School; 1975,1,https://www.romney.senate.gov/,https://bioguide.congress.gov/search/bio/R000615,, +"Rosen, Jacky",84,Nevada,NV,1,1,0.308548351377894,01/03/2019,12/31/2022,3.99452054794521,0,117,50.4,45.4,2018,https://twitter.com/SenJackyRosen,SenJackyRosen,https://twitter.com/RosenforNevada,RosenforNevada,08/02/1957,1,White,6,B.A.; Psychology; University of Minnesota; 1979,1,https://www.rosen.senate.gov/,https://bioguide.congress.gov/search/bio/R000608,, +"Rounds, Mike",85,South Dakota,SD,0,2,0.784008560585577,01/06/2015,12/31/2022,7.98904109589041,0,117,65.7,34.3,2020,https://twitter.com/SenatorRounds,SenatorRounds,N/A,N/A,10/24/1954,0,White,6,B.S.; Political Science; South Dakota State University; 1977,1,https://www.rounds.senate.gov/,https://bioguide.congress.gov/search/bio/R000605,, +"Rubio, Marco",86,Florida,FL,0,3,0.831181764071725,01/05/2011,12/31/2022,11.9945205479452,0,117,52,44.3,2016,https://twitter.com/senmarcorubio,senmarcorubio,https://twitter.com/marcorubio,marcorubio,05/28/1971,0,Hispanic,8,J.D.; University of Miami; 1996,2,https://www.rubio.senate.gov/,https://bioguide.congress.gov/search/bio/R000595,, +"Sanders, Bernard",87,Vermont,VT,2,1,0,01/04/2007,12/31/2022,16,0,117,67.4,27.5,2018,https://twitter.com/SenSanders,SenSanders,https://twitter.com/BernieSanders,BernieSanders,09/08/1941,0,White,6,B.A.; Political Science; University of Chicago; 1964,0,https://www.sanders.senate.gov/,https://bioguide.congress.gov/search/bio/S000033,, +"Sasse, Benjamin",88,Nebraska,NE,0,2,0.684229649213868,01/06/2015,12/31/2022,7.98904109589041,1,117,62.7,24.4,2020,https://twitter.com/sensasse,sensasse,https://twitter.com/BenSasse,BenSasse,02/22/1972,0,White,8,PhD in History; Yale University; 2004,5,N/A,https://bioguide.congress.gov/search/bio/S001197,, +"Schatz, Brian",89,Hawaii ,HI,1,3,0.213250458593456,12/27/2012,12/31/2022,10.0164383561644,0,117,73.6,22.2,2016,https://twitter.com/brianschatz,brianschatz,https://twitter.com/SenBrianSchatz,SenBrianSchatz,10/20/1972,0,White,6,B.A.; Philosophy; Pomona College; 1994,5,https://www.schatz.senate.gov/,https://bioguide.congress.gov/search/bio/S001194,, +"Schumer, Charles E.",90,New York,NY,1,3,0.239789022209428,01/06/1999,12/31/2022,24,0,117,70.4,27.4,2016,https://twitter.com/SenSchumer,SenSchumer,https://twitter.com/chuckschumer,chuckschumer,11/23/1950,0,White,8,J.D.; Harvard University; 1974,2,https://www.schumer.senate.gov/,https://bioguide.congress.gov/search/bio/S000148 ,, +"Scott, Rick",91,Florida,FL,0,1,1,01/08/2019,12/31/2022,3.98082191780822,0,117,50.1,49.9,2018,https://twitter.com/SenRickScott,SenRickScott,https://twitter.com/scottforflorida,scottforflorida,12/01/1952,0,White,8,J.D.; Southern Methodist University; 1978,2,https://www.rickscott.senate.gov/,https://bioguide.congress.gov/search/bio/S001217,, +"Scott, Tim",92,South Carolina,SC,0,3,0.781356077518849,01/03/2013,12/31/2022,9.9972602739726,0,117,60.6,37,2016,https://twitter.com/SenatorTimScott,SenatorTimScott,https://twitter.com/votetimscott,votetimscott,09/19/1965,0,African-American,6,B.S.; Political Science; Charleston Southern University; 1988 ,1,https://www.scott.senate.gov/,https://bioguide.congress.gov/search/bio/S001184,, +"Shaheen, Jeanne",93,New Hampshire,NH,1,2,0.2925665319541,01/06/2009,12/31/2022,13.9917808219178,0,117,56.6,41,2020,https://twitter.com/SenatorShaheen,SenatorShaheen,https://twitter.com/JeanneShaheen,JeanneShaheen,01/28/1947,1,White,7,M.S.S.; University of Mississippi; 1973,5,https://www.shaheen.senate.gov/,https://bioguide.congress.gov/search/bio/S001181,, +"Shelby, Richard",94,Alabama,AL,0,3,0.577739000839365,01/06/1987,12/31/2022,36.0082191780822,1,117,64.2,35.8,2016,https://twitter.com/SenShelby,SenShelby,N/A,N/A,05/06/1934,0,White,6,LL.B.; University of Alabama; 1963,2,N/A,https://bioguide.congress.gov/search/bio/S000320,, +"Sinema, Kyrsten",95,Arizona,AZ,2,1,0.500967034663567,01/03/2019,12/31/2022,3.99452054794521,0,117,50,47.6,2018,https://twitter.com/SenatorSinema,SenatorSinema,https://twitter.com/kyrstensinema,kyrstensinema,07/12/1976,1,White,8,PhD in Justice Studies; Arizona State University; 2012,2,https://www.sinema.senate.gov/,https://bioguide.congress.gov/search/bio/S001191,, +"Smith, Tina",96,Minnesota,MN,1,2,0.0756533259297989,01/03/2018,12/31/2022,4.99452054794521,0,117,48.8,43.5,2020,https://twitter.com/SenTinaSmith,SenTinaSmith,https://twitter.com/TinaSmithMN,TinaSmithMN,03/04/1958,1,White,7,M.B.A. Dartmouth College; 1984,1,https://www.smith.senate.gov/,https://bioguide.congress.gov/search/bio/S001203,, +"Stabenow, Debbie",97,Michigan,MI,1,1,0.221949395648287,01/03/2001,12/31/2022,22.0054794520548,0,117,52.3,45.8,2018,https://twitter.com/SenStabenow,SenStabenow,https://twitter.com/stabenow,stabenow,04/29/1950,1,White,7,M.S.W.; Michigan State University; 1975,5,https://www.stabenow.senate.gov/,https://bioguide.congress.gov/search/bio/S000770,, +"Sullivan, Dan",98,Alaska,AK,0,2,0.652100683642255,01/06/2015,12/31/2022,7.98904109589041,0,117,53.9,41.2,2020,https://twitter.com/SenDanSullivan,SenDanSullivan,N/A,N/A,11/13/1964,0,White,8,J.D.; Georgetown University; 1993,2,https://www.sullivan.senate.gov/,https://bioguide.congress.gov/search/bio/S001198,, +"Tester, Jon",99,Montana,MT,1,1,0.377646486433112,01/04/2007,12/31/2022,16,0,117,50.3,46.8,2018,https://twitter.com/SenatorTester,SenatorTester,https://twitter.com/jontester,jontester,08/21/1956,0,White,6,B.A.; Music; University of Providence; 1978,10,https://www.tester.senate.gov/,https://bioguide.congress.gov/search/bio/T000464 ,, +"Thune, John",100,South Dakota,SD,0,3,0.795060855902239,01/04/2005,12/31/2022,18,0,117,71.8,28.2,2016,https://twitter.com/SenJohnThune,SenJohnThune,https://twitter.com/johnthune,johnthune,01/07/1961,0,White,7,M.B.A.; University of South Dakota; 1984,1,https://www.thune.senate.gov/,https://bioguide.congress.gov/search/bio/T000250 ,, +"Tillis, Thom",101,North Carolina,NC,0,2,0.819146177750934,01/06/2015,12/31/2022,7.98904109589041,0,117,48.7,46.9,2020,https://twitter.com/SenThomTillis,SenThomTillis,https://twitter.com/ThomTillis,ThomTillis,08/30/1960,0,White,6,B.S.; Technology Management; University of Maryland; 1996,1,https://www.tillis.senate.gov/,https://bioguide.congress.gov/search/bio/T000476 ,, +"Toomey, Patrick",102,Pennsylvania,PA,0,3,0.607637714921737,01/05/2011,12/31/2022,11.9945205479452,1,117,48.9,47.2,2016,https://twitter.com/SenToomey,SenToomey,https://twitter.com/pattoomey,pattoomey,11/17/1961,0,White,6,A.B.; Government; Harvard College; 1984,1,N/A,https://bioguide.congress.gov/search/bio/T000461 ,, +"Tuberville, Tommy",103,Alabama,AL,0,2,0.808701355452043,01/03/2021,12/31/2022,1.99178082191781,0,117,60.1,39.7,2020,https://twitter.com/SenTuberville,SenTuberville,https://twitter.com/TTuberville,TTuberville,09/18/1954,0,White,6,"B.S., physical education, Southern Arkansas University, 1976",5,https://www.tuberville.senate.gov/,https://bioguide.congress.gov/search/bio/T000278 ,, +"Van Hollen, Chris",104,Maryland,MD,1,3,0.117646768842011,01/03/2017,12/31/2022,5.99452054794521,0,117,60.4,36.4,2016,https://twitter.com/ChrisVanHollen,ChrisVanHollen,N/A,N/A,01/10/1959,0,White,8,J.D.; Georgetown university; 1990,2,https://www.vanhollen.senate.gov/,https://bioguide.congress.gov/search/bio/V000128,, +"Warner, Mark R.",105,Virginia,VA,1,2,0.33022168507113,01/06/2009,12/31/2022,13.9917808219178,0,117,56,44,2020,https://twitter.com/SenatorWarner,SenatorWarner,https://twitter.com/MarkWarner,MarkWarner,12/15/1954,0,White,8,J.D.; Harvard Law School; 1980,1,https://www.warner.senate.gov/,https://bioguide.congress.gov/search/bio/W000805 ,, +"Warnock, Raphael G.",106,Georgia,GA,1,3,0.464158242867696,01/20/2021,12/31/2022,1.94520547945205,0,117,51,49,2020,https://twitter.com/SenatorWarnock,SenatorWarnock,https://twitter.com/ReverendWarnock,ReverendWarnock,07/23/1969,0,African-American,8,PhD in Philosophy; Union Theological Seminary; ,8,https://www.warnock.senate.gov/,https://bioguide.congress.gov/search/bio/W000790,, +"Warren, Elizabeth",107,Massachusetts,MA,1,1,0.0583875007437665,01/03/2013,12/31/2022,9.9972602739726,0,117,60.4,36.2,2018,https://twitter.com/SenWarren,SenWarren,https://twitter.com/ewarren,ewarren,06/22/1949,1,White,8,J.D.; Rutgers University; 1976,2,https://www.warren.senate.gov/,https://bioguide.congress.gov/search/bio/W000817 ,, +"Whitehouse, Sheldon",108,Rhode Island,RI,1,1,0.124737669119195,01/04/2007,12/31/2022,16,0,117,61.6,38.4,2018,https://twitter.com/SenWhitehouse,SenWhitehouse,N/A,N/A,10/20/1955,0,White,8,J.D.; University of Virginia; 1982,2,https://www.whitehouse.senate.gov/,https://bioguide.congress.gov/search/bio/W000802,, +"Wicker, Roger F.",109,Mississippi,MS,0,1,0.763788502839721,12/31/2007,12/31/2022,15.0109589041096,0,117,58.5,39.5,2018,https://twitter.com/SenatorWicker,SenatorWicker,https://twitter.com/RogerWicker,RogerWicker,07/05/1951,0,White,8,J.D.; University of Mississippi; 1975,2,https://www.wicker.senate.gov/,https://bioguide.congress.gov/search/bio/W000437,, +"Wyden, Ron",110,Oregon,OR,1,3,0.0591413132623803,02/05/1996,12/31/2022,26.9205479452055,0,117,56.7,33.6,2016,https://twitter.com/RonWyden,RonWyden,N/A,N/A,05/03/1949,0,White,8,J.D.; University of Oregon; 1974,2,https://www.wyden.senate.gov/,https://bioguide.congress.gov/search/bio/W000779,, +"Young, Todd",111,Indiana,IN,0,3,0.677696674158218,01/05/2011,12/31/2022,11.9945205479452,1,117,52.1,42.4,2016,https://twitter.com/SenToddYoung,SenToddYoung,https://twitter.com/ToddYoungIN,ToddYoungIN,08/24/1972,0,White,8,J.D.; Robert H. McKinney; 2006,2,https://www.young.senate.gov/,https://bioguide.congress.gov/search/bio/Y000064,, diff --git a/funs/ClearDupes.py b/funs/ClearDupes.py new file mode 100644 index 0000000..17c921a --- /dev/null +++ b/funs/ClearDupes.py @@ -0,0 +1,25 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +''' +Created on Wed Jun 21 13:58:42 2023 + +@author: michael +''' +def deDupe(inFile, outFile): + from collections import Counter + with open(inFile) as f: + lines = f.readlines() + count = Counter(lines) + dupes = [ k for (k,v) in count.items() if v > 1] + # uncomment to get duplicates + ''' for dup in dupes: + print(f'Duplicate: {dup}', end='') ''' + skips = [] + outFileName = outFile + with open(outFile, 'w') as outFile: + for line in lines: + if line not in skips: + outFile.write(line) + if line not in skips and line in dupes: + skips.append(line) + print(f'{len(dupes)} duplicate Keywords removed and saved into {outFileName}.') \ No newline at end of file diff --git a/funs/TimeSlice.py b/funs/TimeSlice.py new file mode 100644 index 0000000..ead4dda --- /dev/null +++ b/funs/TimeSlice.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +''' +Created on Wed Jun 21 13:58:42 2023 + +@author: michael +''' + +# create slices +def get_Tslices(ts_beg, ts_end, no_slices): + from datetime import datetime + from datetime import timedelta + ts_beg = datetime.strptime(ts_beg, '%Y-%m-%dT%H:%M:%SZ') + ts_end = datetime.strptime(ts_end, '%Y-%m-%dT%H:%M:%SZ') + ts_dif = (ts_end - ts_beg) / no_slices + time_slices = [] + for i in range(no_slices): + time_slices.append( + { + 'beg_time': (ts_beg + ts_dif * i).strftime('%Y-%m-%dT%H:%M:%SZ'), + 'end_time': (ts_beg + ts_dif * i + ts_dif - timedelta(microseconds=1)).strftime('%Y-%m-%dT%H:%M:%SZ'), + 'suffix': f'-slice{i+1}' + }) + return time_slices \ No newline at end of file