Skip to content

Commit caa8075

Browse files
ladyyviiproost
authored andcommitted
DOC: Fixed PR09 docstring errors in pandas.tseries (pandas-dev#27977) (pandas-dev#28707)
1 parent aef48f0 commit caa8075

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

pandas/tseries/offsets.py

+12-7
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ 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 : Temporal parameter that add to or replace the offset value.
207+
**kwds
208+
Temporal parameter that add to or replace the offset value.
208209
209210
Parameters that **add** to the offset (like Timedelta):
210211
@@ -1005,12 +1006,12 @@ class CustomBusinessDay(_CustomMixin, BusinessDay):
10051006
----------
10061007
n : int, default 1
10071008
normalize : bool, default False
1008-
Normalize start/end dates to midnight before generating date range
1009+
Normalize start/end dates to midnight before generating date range.
10091010
weekmask : str, Default 'Mon Tue Wed Thu Fri'
1010-
Weekmask of valid business days, passed to ``numpy.busdaycalendar``
1011+
Weekmask of valid business days, passed to ``numpy.busdaycalendar``.
10111012
holidays : list
10121013
List/array of dates to exclude from the set of valid business days,
1013-
passed to ``numpy.busdaycalendar``
1014+
passed to ``numpy.busdaycalendar``.
10141015
calendar : pd.HolidayCalendar or np.busdaycalendar
10151016
offset : timedelta, default timedelta(0)
10161017
"""
@@ -1519,7 +1520,7 @@ class Week(DateOffset):
15191520
Parameters
15201521
----------
15211522
weekday : int, default None
1522-
Always generate specific day of week. 0 for Monday
1523+
Always generate specific day of week. 0 for Monday.
15231524
"""
15241525

15251526
_adjust_dst = True
@@ -2085,7 +2086,9 @@ class FY5253(DateOffset):
20852086
The month in which the fiscal year ends.
20862087
20872088
variation : str, default "nearest"
2088-
Method of employing 4-4-5 calendar. There are two options:
2089+
Method of employing 4-4-5 calendar.
2090+
2091+
There are two options:
20892092
20902093
- "nearest" means year end is **weekday** closest to last day of month in year.
20912094
- "last" means year end is final **weekday** of the final month in fiscal year.
@@ -2304,7 +2307,9 @@ class FY5253Quarter(DateOffset):
23042307
The quarter number that has the leap or 14 week when needed.
23052308
23062309
variation : str, default "nearest"
2307-
Method of employing 4-4-5 calendar. There are two options:
2310+
Method of employing 4-4-5 calendar.
2311+
2312+
There are two options:
23082313
23092314
- "nearest" means year end is **weekday** closest to last day of month in year.
23102315
- "last" means year end is final **weekday** of the final month in fiscal year.

0 commit comments

Comments
 (0)