I have a dataframe and am trying to set the index to the "Timestamp" column. Currently, an index is just a line number. Timestamp format example: 2015-09-03 16:35:00
I tried to set the index:
df.set_index('Timestamp')
I am not getting an error, but when I print a DataFrame, the index is still the line number. How can I use Timestamp as an index?
source share