-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Open
Labels
FrequencyDateOffsetsDateOffsetsNon-Nanodatetime64/timedelta64 with non-nanosecond resolutiondatetime64/timedelta64 with non-nanosecond resolutionNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operations
Description
In [1]: import pandas as pd; from io import StringIO; import numpy as np
In [2]: ser = pd.Series(pd.DatetimeIndex(["2000-01-01 00:00:00.012"], dtype="datetime64[ms]"))
In [3]: ser
Out[3]:
0 2000-01-01 00:00:00.012
dtype: datetime64[ms]
In [4]: ser + pd.DateOffset(microseconds=0) # 2.1.4
Out[4]:
0 2000-01-01 00:00:00.012
dtype: datetime64[ms]
In [3]: ser + pd.DateOffset(microseconds=0). # main
Out[3]:
0 2000-01-01 00:00:00.012
dtype: datetime64[us]
Possibly from #55595. Should the resolution be re-inferred here? cc @jbrockmendel
Metadata
Metadata
Assignees
Labels
FrequencyDateOffsetsDateOffsetsNon-Nanodatetime64/timedelta64 with non-nanosecond resolutiondatetime64/timedelta64 with non-nanosecond resolutionNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operations