Skip to content

Commit 98f5b96

Browse files
author
acr-bot
committed
Fix #2
1 parent 4a26cee commit 98f5b96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/core/tools/numeric.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ def to_numeric(
189189
return float(arg)
190190
if is_number(arg):
191191
return arg
192+
if isinstance(arg, Timedelta): # Handle Timedelta
193+
return arg.value
192194
is_scalars = True
193195
values = np.array([arg], dtype="O")
194196
elif getattr(arg, "ndim", 1) > 1:

0 commit comments

Comments
 (0)