You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
importpandasaspdpd.to_datetime(pd.NA) # -> NaTpd.to_timedelta(pd.NA) # -> ValueError: Value must be Timedelta, string, integer, float, timedelta or convertible, not NAType
Issue Description
to_timedelta(pd.NA) raising ValueError.
Expected Behavior
to_timedelta(pd.NA) should return NaT similar to to_datetime(pd.NA).
Installed Versions
.
The text was updated successfully, but these errors were encountered:
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
to_timedelta(pd.NA)
raisingValueError
.Expected Behavior
to_timedelta(pd.NA)
should returnNaT
similar toto_datetime(pd.NA)
.Installed Versions
.
The text was updated successfully, but these errors were encountered: