Pandas version checks
-
[X] I have checked that this issue has not already been reported.
-
[X] I have confirmed this bug exists on the latest version of pandas.
-
[X] I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
import pandas as pd
pd.to_datetime(pd.NA) # -> NaT
pd.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
.
Comment From: DeaMariaLeon
take