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
Hey @max-sixty,
I looked at it and indeed it does not return a numpy.array, it will either be a TimedeltaIndex as in the following case pd.to_timedelta(np.arange(5), unit='d') or Timedelta (from pandas._libs.tslibs.timedeltas.Timedelta) in the following case pd.to_timedelta("15.5us") (when passing just a string it seems)
I have opened a PR to update the docs.
Have a good day!
Location of the documentation
https://github.com/pandas-dev/pandas/blob/master/pandas/core/tools/timedeltas.py#L70
Documentation problem
Is
numpy.array of timedelta64
the correct return time for to_timedelta? I see it here asTimedeltaIndex
: https://github.com/pandas-dev/pandas/blob/master/pandas/tests/indexes/timedeltas/test_timedelta.py#L27The text was updated successfully, but these errors were encountered: