BUG: pd.to_numeric(timedelta_scalar) raises TypeError #59944
Labels
Bug
Dtype Conversions
Unexpected or buggy dtype conversions
Timedelta
Timedelta data type
Timestamp
pd.Timestamp and associated methods
Milestone
Pandas version checks
I have checked that this issue has not already been reported.
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
Getting a
TypeError
Expected Behavior
For the example above, I should get the integer
1
. That would match the behavior ofpd.to_numeric(pd.Series(pd.Timedelta(1)))
Installed Versions
The text was updated successfully, but these errors were encountered: