I am working with holt winter method taking help from here. My data format is
Year Rate
0 2013 34.700000
1 2013 34.666667
2 2013 34.600000
3 2014 35.300000
4 2014 34.180000
Below is my code
import pandas as pd
#Importing data
df = pd.read_csv('/home/rajnish.kumar/eclipse-workspace/ShivShakti/Result/weeklyDatarateyearonly/part-00000-971f46d7-a97d-4a7e-be41-dc840c2d0618-c000.csv')
df.Timestamp = pd.to_datetime(df.Datetime,format='%Y')
But I am getting this error:
AttributeError: 'DataFrame' object has no attribute 'Datetime'
Datetime. This is why I prefer not to use the . accessor syntax for column names