Skip to content

Commit

Permalink
BUG: fix timedelta floordiv with scalar float (correction of #44466) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche authored Nov 18, 2021
1 parent be1ef62 commit 8c4bd0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/arrays/timedeltas.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def __floordiv__(self, other):

# at this point we should only have numeric scalars; anything
# else will raise
result = self._ndarray / other
result = self._ndarray // other
freq = None
if self.freq is not None:
# Note: freq gets division, not floor-division
Expand Down

0 comments on commit 8c4bd0e

Please sign in to comment.