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.
Activity
tacaswell commented on Oct 29, 2017
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.
QuLogic commented on Oct 29, 2017
Same problem as #9610 perhaps?
dstansby commented on Oct 30, 2017
Yep, I'd guess it is the same root issue as #9610
timhoffm commented on Mar 21, 2018
Works here on 2.2.2. Probably fixed by #9779.
Please reopen if there are still issues.