-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Fixes to docstrings formatting #28096
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
Changes from 12 commits
973fe16
73a750b
877c0a7
75737f5
f1bc202
c087a4a
cce1b46
be4543f
d647f09
0273150
700abba
f8675ad
d0d3f6c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -204,8 +204,7 @@ def __add__(date): | |
normalize : bool, default False | ||
Whether to round the result of a DateOffset addition down to the | ||
previous midnight. | ||
**kwds | ||
Temporal parameter that add to or replace the offset value. | ||
**kwds : Temporal parameter that add to or replace the offset value. | ||
|
||
Parameters that **add** to the offset (like Timedelta): | ||
|
||
|
@@ -231,18 +230,25 @@ def __add__(date): | |
- microsecond | ||
- nanosecond | ||
|
||
. | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you remove those? |
||
See Also | ||
-------- | ||
dateutil.relativedelta.relativedelta | ||
dateutil.relativedelta.relativedelta : The relativedelta type is designed | ||
|
||
to be applied to an existing datetime an can replace specific components of | ||
|
||
that datetime, or represents an interval of time. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. to continue with the description of the see also, avoid the blank lines and indent the continued description There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for getting back to me, just committed the changes you requested. |
||
|
||
Examples | ||
-------- | ||
>>> from pandas.tseries.offsets import DateOffset | ||
>>> ts = pd.Timestamp('2017-01-01 09:10:11') | ||
>>> ts + DateOffset(months=3) | ||
Timestamp('2017-04-01 09:10:11') | ||
|
||
>>> ts = pd.Timestamp('2017-01-01 09:10:11') | ||
>>> ts + DateOffset(month=3) | ||
>>> ts + DateOffset(months=2) | ||
Timestamp('2017-03-01 09:10:11') | ||
""" | ||
|
||
|
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.
can you remove this extra newline