This is a data set containing the name and party of every state or territory governor from the start of this country (technically 1775) to 2018.
The original data (link below) had governor as the unit. It gave the governor’s name, the state, the party (or parties) they belonged to and which years they were in office. I changed this to state-year unit so for each state and year it says who the governor was and their party. For years 1950-2018 I made minor changes to the party variable. For example, if a governor (e.g. Ronald Reagan) was reported as belonging to multiple parties in their life, I changed the party for a given year to the party they belonged to that year. I DID NOT make any changes at all for years prior to 1950.
As an example, here is the first 6 rows of the data.
|Lolo Matalasi Moliga||American Samoa||2018||Independent|
|Edmund G. Brown||California||2018||Democrat|
The data is here.
The website where I got the raw data is here.
The GitHub page containing code to download and clean the data is here.