Skip to content

DOC: Make the value parameter of pandas.Timedelta can accept float #60114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion pandas/_libs/tslibs/timedeltas.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1867,7 +1867,9 @@ class Timedelta(_Timedelta):
value : Timedelta, timedelta, np.timedelta64, str, or int
Input value.
unit : str, default 'ns'
Denote the unit of the input, if input is an integer.
If input is an integer, denote the unit of the input.
If input is a float, denote the unit of integer parts.
The decimal parts with resolution lower than 1 nanosecond are ignored.

Possible values:

Expand Down
Loading