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
In [63]: df = pd.DataFrame({'A' : Series(dtype='M8[ns]'), 'B' : Series(dtype='m8[ns]')})
In [64]: df
Out[64]:
Empty DataFrame
Columns: [A, B]
Index: []
In [65]: df.dtypes
Out[65]:
A datetime64[ns]
B timedelta64[ns]
dtype: object
In [66]: df.A+df.B
TypeError: ufunc add cannot use operands with types dtype('<M8[ns]') and dtype('O')
Yeah this empty case is prob address by coercion, maybe @sinhrks has a better idea.
Code Sample, a copy-pastable example if possible
Current Output
Expected Output
output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: