Datetime series cannot subtract numpy.datetime64 #12830
Labels
Datetime
Datetime data dtype
Dtype Conversions
Unexpected or buggy dtype conversions
Duplicate Report
Duplicate issue or pull request
For some reason, it's not possible to subtract a
numpy.datetime64
object from aSeries
, even though subtracting adatetime.datetime
object is possible. I found this bug when trying to work around issue #8554.Code Sample, a copy-pastable example if possible
Expected Output
epoch_ts
andepoch_tsnp
are both:There is a
TypeError
raised whenepoch_ts64
is calculated. A full stack trace follows:output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: