Index as string:
Demonstration:
CodePudding user response:
To add to @Corralien's answer, I could also modify my read_csv
call to pass parse_dates = True
to automatically parse values as dates in the index column:
fb = pd.read_csv("C:\\Users\\me\\Downloads\\META.csv", index_col = 'Date', parse_dates = True)