8000 DOC: fix PR09,PR08 errors for pandas.Timestamp by josibake · Pull Request #28739 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

DOC: fix PR09,PR08 errors for pandas.Timestamp #28739

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

Merged
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
reformat argument list for unit paramter
  • Loading branch information
Josiah Baker committed Oct 4, 2019
commit f3f3ef89b7bc634ccb9c3ae09c5729b5511342c0
18 changes: 13 additions & 5 deletions pandas/_libs/tslibs/timedeltas.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1215,12 +1215,20 @@ class Timedelta(_Timedelta):
Parameters
----------
value : Timedelta, timedelta, np.timedelta64, string, or integer
unit : {'Y', 'M', 'W', 'D', 'days', 'day', 'hours', hour', 'hr', 'h', 'm', \
'minute', 'min', 'minutes', 'T', 'S', 'seconds', 'sec', 'second', 'ms', \
'milliseconds', 'millisecond', 'milli', 'millis', 'L', 'us', 'microseconds', \
'microsecond', 'micro', 'micros', 'U', 'ns', 'nanoseconds', 'nano', 'nanos', \
'nanosecond', 'N'}, default 'ns'
unit : str, default 'ns'
Denote the unit of the input, if input is an integer.

Possible values:

* 'Y', 'M', 'W', 'D', 'T', 'S', 'L', 'U', or 'N'
* 'days' or 'day'
* 'hours', 'hour', 'hr', or 'h'
* 'minutes', 'minute', 'min', or 'm'
* 'seconds', 'second', or 'sec'
* 'milliseconds', 'millisecond', 'millis', or 'milli'
* 'microseconds', 'microsecond', 'micros', or 'micro'
* 'nanoseconds', 'nanosecond', 'nanos', 'nano', or 'ns'.

**kwargs
Available kwargs: {days, seconds, microseconds,
milliseconds, minutes, hours, weeks}.
Expand Down
0