Open Wainberg opened 9 months ago
Integer division of timedelta(hours=1)
by 24 should not be 0 hours. Consider you can have multiple units in a delta, e.g. timedelta(hours=1, minutes=2)
. Pandas seems to treat float and integer division the same.
Checks
Reproducible example
Log output
No response
Issue description
Can't multiply or divide a Duration Series by an integer. This was previously reported at https://github.com/pola-rs/polars/issues/9637, but as a feature enhancement rather than a bug.
For DataFrames, it's also wrong due to a different bug (https://github.com/pola-rs/polars/issues/12330):
Expected behavior
Should multiply to 24 hours and divide to 1/24 hours and 0 hours respectively.
Installed versions