Skip to content

Commit 8c4bd0e

Browse files
BUG: fix timedelta floordiv with scalar float (correction of #44466) (#44471)
1 parent be1ef62 commit 8c4bd0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/timedeltas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ def __floordiv__(self, other):
651651

652652
# at this point we should only have numeric scalars; anything
653653
# else will raise
654-
result = self._ndarray / other
654+
result = self._ndarray // other
655655
freq = None
656656
if self.freq is not None:
657657
# Note: freq gets division, not floor-division

0 commit comments

Comments
 (0)