You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "C:/Users/x/x/x/test.py", line 13, in <module>
ax2.bar(df.index, df['Volume'])
File "C:\Users\Johnson\AppData\Local\Programs\Python\Python36\lib\site-packages\matplotlib\__init__.py", line 1710, in inner
return func(ax, *args, **kwargs)
File "C:\Users\Johnson\AppData\Local\Programs\Python\Python36\lib\site-packages\matplotlib\axes\_axes.py", line 2129, in bar
left = x - width / 2
TypeError: ufunc subtract cannot use operands with types dtype('<M8[ns]') and dtype('float64')
Something is not going correct with the unit handling (which in what converts from datetime objcets / np.datetime values -> floats that we can plot). It looks like only one or neither of the values an being converted here as we attempt to center the bars.
Bug report
Bug summary
matplotlib.pyplot.bar
unable to usepandas.core.indexes.datetimes.DatetimeIndex
asx
Code for reproduction
Output
Matplotlib version
print(matplotlib.get_backend())
): TkAggThe text was updated successfully, but these errors were encountered: