Data Science Consultant & Certified Data Management Professional
Read in a .csv and set index
Let’s say our data table contains a unique identifier that we want to use as an index in our DataFrame. We can set this up with the index_col parameter:
data = pd.read_csv('greenhouse.csv', index_col='plant_id')