-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
Description
Pandas version checks
- I have checked that the issue still exists on the latest versions of the docs on
main
here
Location of the documentation
https://pandas.pydata.org/docs/dev/reference/api/pandas.Timedelta.html#pandas.Timedelta
Documentation problem
It currently states:
pandas/pandas/_libs/tslibs/timedeltas.pyx
Line 1867 in 2a10e04
value : Timedelta, timedelta, np.timedelta64, str, or int |
There is no float
.
Suggested fix for documentation
Add float,
to accepted types.
There already exists a code branch for float
values so this should not be a problem:
pandas/pandas/_libs/tslibs/timedeltas.pyx
Line 2056 in 2a10e04
elif is_integer_object(value) or is_float_object(value): |