Open famenzel opened 8 months ago
Thanks for the report. Result of a git bisect:
commit 8b8f0d04795e80a9298688e55bb4164b597392bc
Author: jbrockmendel
Date: Tue Dec 19 15:35:22 2023 -0800
DEPR: Tick.delta (#56558)
cc @jbrockmendel
Looks like the difference is with the _value
attr on Timedelta
>>> pd.Timedelta(a)._value
1
>>> a.delta._value
<stdin>:1: FutureWarning: Second.delta is deprecated and will be removed in a future version. Use pd.Timedelta(obj) instead
1000000000
Taking a look
Pandas version checks
[X] I have checked that this issue has not already been reported.
[X] 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
In contrast to tso.Minute(), tso.Day(), division with tso.Second() with any integer always results in tso.Day(0) (a). This is not the case with the corresponding multiplication (b). In previous pandas versions this did not happen.
Expected Behavior
tso.Second()/10 should return tso.Milli(100) and not tso.Day(0).
Installed Versions