Fix Python – Can Pandas plot a histogram of dates?
I’ve taken my Series and coerced it to a datetime column of dtype=datetime64[ns] (though only need day resolution…not sure how to change).
import pandas as pd
df = pd.read_csv(‘somefile.csv’)
column = df[‘date’]
column = pd.to_datetime(column, coerce=True)
but plotting doesn’t work:
ipdb> column.plot(kind=’hist’)
*** TypeError: ufunc add canno….