Skip to content
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: Fixed PR09 docstring errors in pandas.tseries (#27977) #28707

Merged
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
19 changes: 12 additions & 7 deletions pandas/tseries/offsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ 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):

Expand Down Expand Up @@ -1005,12 +1006,12 @@ class CustomBusinessDay(_CustomMixin, BusinessDay):
----------
n : int, default 1
normalize : bool, default False
Normalize start/end dates to midnight before generating date range
Normalize start/end dates to midnight before generating date range.
weekmask : str, Default 'Mon Tue Wed Thu Fri'
Weekmask of valid business days, passed to ``numpy.busdaycalendar``
Weekmask of valid business days, passed to ``numpy.busdaycalendar``.
holidays : list
List/array of dates to exclude from the set of valid business days,
passed to ``numpy.busdaycalendar``
passed to ``numpy.busdaycalendar``.
calendar : pd.HolidayCalendar or np.busdaycalendar
offset : timedelta, default timedelta(0)
"""
Expand Down Expand Up @@ -1519,7 +1520,7 @@ class Week(DateOffset):
Parameters
----------
weekday : int, default None
Always generate specific day of week. 0 for Monday
Always generate specific day of week. 0 for Monday.
"""

_adjust_dst = True
Expand Down Expand Up @@ -2085,7 +2086,9 @@ class FY5253(DateOffset):
The month in which the fiscal year ends.

variation : str, default "nearest"
Method of employing 4-4-5 calendar. There are two options:
Method of employing 4-4-5 calendar.

There are two options:

- "nearest" means year end is **weekday** closest to last day of month in year.
- "last" means year end is final **weekday** of the final month in fiscal year.
Expand Down Expand Up @@ -2304,7 +2307,9 @@ class FY5253Quarter(DateOffset):
The quarter number that has the leap or 14 week when needed.

variation : str, default "nearest"
Method of employing 4-4-5 calendar. There are two options:
Method of employing 4-4-5 calendar.

There are two options:

- "nearest" means year end is **weekday** closest to last day of month in year.
- "last" means year end is final **weekday** of the final month in fiscal year.
Expand Down