'Series' object has no attribute 'to_datetime'
I am kind of late, but still useful for future readers.
Below code converts a column of type object in a pandas df to type timestamp
df.timeStamp = pd.to_datetime(df.timeStamp)
Because to_datetime
is only a valid attribute to pandas
module, that's all.
So that's why:
AttributeError: 'Series' object has no attribute 'to_datetime'
(see highlighted part)
So of course, to_datetime
can't be used that way.