Skip to content

Commit 478d686

Browse files
committed
Revert "DOC: Fixed PR09 docstring errors in pandas.tseries (pandas-dev#27977)"
This reverts commit ad03c41.
1 parent 4a7662e commit 478d686

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

pandas/tseries/offsets.py

+7-12
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,7 @@ def __add__(date):
204204
normalize : bool, default False
205205
Whether to round the result of a DateOffset addition down to the
206206
previous midnight.
207-
**kwds
208-
Temporal parameter that add to or replace the offset value.
207+
**kwds : Temporal parameter that add to or replace the offset value.
209208
210209
Parameters that **add** to the offset (like Timedelta):
211210
@@ -1006,12 +1005,12 @@ class CustomBusinessDay(_CustomMixin, BusinessDay):
10061005
----------
10071006
n : int, default 1
10081007
normalize : bool, default False
1009-
Normalize start/end dates to midnight before generating date range.
1008+
Normalize start/end dates to midnight before generating date range
10101009
weekmask : str, Default 'Mon Tue Wed Thu Fri'
1011-
Weekmask of valid business days, passed to ``numpy.busdaycalendar``.
1010+
Weekmask of valid business days, passed to ``numpy.busdaycalendar``
10121011
holidays : list
10131012
List/array of dates to exclude from the set of valid business days,
1014-
passed to ``numpy.busdaycalendar``.
1013+
passed to ``numpy.busdaycalendar``
10151014
calendar : pd.HolidayCalendar or np.busdaycalendar
10161015
offset : timedelta, default timedelta(0)
10171016
"""
@@ -1520,7 +1519,7 @@ class Week(DateOffset):
15201519
Parameters
15211520
----------
15221521
weekday : int, default None
1523-
Always generate specific day of week. 0 for Monday.
1522+
Always generate specific day of week. 0 for Monday
15241523
"""
15251524

15261525
_adjust_dst = True
@@ -2086,9 +2085,7 @@ class FY5253(DateOffset):
20862085
The month in which the fiscal year ends.
20872086
20882087
variation : str, default "nearest"
2089-
Method of employing 4-4-5 calendar.
2090-
2091-
There are two options:
2088+
Method of employing 4-4-5 calendar. There are two options:
20922089
20932090
- "nearest" means year end is **weekday** closest to last day of month in year.
20942091
- "last" means year end is final **weekday** of the final month in fiscal year.
@@ -2307,9 +2304,7 @@ class FY5253Quarter(DateOffset):
23072304
The quarter number that has the leap or 14 week when needed.
23082305
23092306
variation : str, default "nearest"
2310-
Method of employing 4-4-5 calendar.
2311-
2312-
There are two options:
2307+
Method of employing 4-4-5 calendar. There are two options:
23132308
23142309
- "nearest" means year end is **weekday** closest to last day of month in year.
23152310
- "last" means year end is final **weekday** of the final month in fiscal year.

0 commit comments

Comments
 (0)