I have an original dataset which looks like this:
I am trying to take the avgLowPrice out aswell as the datetime and have the dates as the index and a column of avgLowPrice. This is my code:
df=pd.read_csv('data.csv')
data = df.filter(['avgLowPrice'])
data.set_index(df['datetime'])
and when i print data i get this:
So instead of my data being indexed by datetime it is just indexed by numbers 0-300 how do i convert 0-300 into my original datetime column to have the price indexed by datetime?