BUG: diff method incorrect on datetime64[s] #59650
Labels
Bug
Closing Candidate
May be closeable, needs more eyeballs
Datetime
Datetime data dtype
Needs Info
Clarification about behavior needed to assess issue
Transformations
e.g. cumsum, diff, rank
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
I'm expecting the difference to be 365 days on both, however on the second example the difference ends up coming in nanoseconds as opposed to seconds.
Expected Behavior
Expecting the diff to be 365 days on both
Installed Versions
Replace this line with the output of pd.show_versions()
The text was updated successfully, but these errors were encountered: