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
Period + np.timedelta64 doesn't raise TypeError(NotImplemented) (like offsets does), and results in erratic internal representation.
import pandas as pd
import numpy as np
p = pd.Period('2011-01-01', freq='D')
p = p + np.timedelta64(2, 'h')
# This raises no error
print(p)
# TypeError: don't know how to convert scalar number to int
p.ordinal
#14977 hours
PeriodIndex + np.timedelta64 also doesn't raise TypeError(NotImplemented), and are added ignoring PeriodIndex.freq.
Period
+np.timedelta64
doesn't raiseTypeError(NotImplemented)
(likeoffsets
does), and results in erratic internal representation.PeriodIndex
+np.timedelta64
also doesn't raiseTypeError(NotImplemented)
, and are added ignoringPeriodIndex.freq
.The text was updated successfully, but these errors were encountered: