-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
DOC: add missing parameters to offsets classes: Second, Minute, Hour and Day #54427
Conversation
pandas/_libs/tslibs/offsets.pyx
Outdated
You can use the parameter ``n`` to represent a shift of n days. | ||
>>> from pandas.tseries.offsets import Day | ||
>>> ts = pd.Timestamp(2022, 12, 9, 15) | ||
>>> ts.strftime('%a %d %b %Y %H:%M') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For all the examples, can you not use strftime
? Just show the result of the repr
/preview |
No preview found for PR #54427. Did the docs build complete? |
pandas/_libs/tslibs/offsets.pyx
Outdated
You can use the parameter ``n`` to represent a shift of n days. | ||
>>> from pandas.tseries.offsets import Day |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this'll render, you need a blank line before the example
2249b4b
to
c881fdc
Compare
36785a1
to
9970fb4
Compare
9970fb4
to
4bdfb6b
Compare
Thanks @dullibri |
…and Day (pandas-dev#54427) * DOC: add missing parameters to offsets classes: Second, Hour and Day * DOC: offsets removed trailing white spaces from Second, Min ute, Hour, Day * DOC: updated offset methods sec, min, h,d (pandas-dev#54427)
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.