@@ -1007,9 +1007,9 @@ class CustomBusinessDay(_CustomMixin, BusinessDay):
1007
1007
normalize : bool, default False
1008
1008
Normalize start/end dates to midnight before generating date range
1009
1009
weekmask : str, Default 'Mon Tue Wed Thu Fri'
1010
- weekmask of valid business days, passed to ``numpy.busdaycalendar``
1010
+ Weekmask of valid business days, passed to ``numpy.busdaycalendar``
1011
1011
holidays : list
1012
- list /array of dates to exclude from the set of valid business days,
1012
+ List /array of dates to exclude from the set of valid business days,
1013
1013
passed to ``numpy.busdaycalendar``
1014
1014
calendar : pd.HolidayCalendar or np.busdaycalendar
1015
1015
offset : timedelta, default timedelta(0)
@@ -1671,16 +1671,19 @@ class WeekOfMonth(_WeekOfMonthMixin, DateOffset):
1671
1671
Parameters
1672
1672
----------
1673
1673
n : int
1674
- week : {0, 1, 2, 3, ...}, default 0
1675
- 0 is 1st week of month, 1 2nd week, etc.
1676
- weekday : {0, 1, ..., 6}, default 0
1677
- 0: Mondays
1678
- 1: Tuesdays
1679
- 2: Wednesdays
1680
- 3: Thursdays
1681
- 4: Fridays
1682
- 5: Saturdays
1683
- 6: Sundays
1674
+ week : int {0, 1, 2, 3, ...}, default 0
1675
+ A specific integer for the week of the month.
1676
+ e.g. 0 is 1st week of month, 1 is the 2nd week, etc.
1677
+ weekday : int {0, 1, ..., 6}, default 0
1678
+ A specific integer for the day of the week.
1679
+
1680
+ - 0 is Monday
1681
+ - 1 is Tuesday
1682
+ - 2 is Wednesday
1683
+ - 3 is Thursday
1684
+ - 4 is Friday
1685
+ - 5 is Saturday
1686
+ - 6 is Sunday
1684
1687
"""
1685
1688
1686
1689
_prefix = "WOM"
@@ -1747,14 +1750,16 @@ class LastWeekOfMonth(_WeekOfMonthMixin, DateOffset):
1747
1750
Parameters
1748
1751
----------
1749
1752
n : int, default 1
1750
- weekday : {0, 1, ..., 6}, default 0
1751
- 0: Mondays
1752
- 1: Tuesdays
1753
- 2: Wednesdays
1754
- 3: Thursdays
1755
- 4: Fridays
1756
- 5: Saturdays
1757
- 6: Sundays
1753
+ weekday : int {0, 1, ..., 6}, default 0
1754
+ A specific integer for the day of the week.
1755
+
1756
+ - 0 is Monday
1757
+ - 1 is Tuesday
1758
+ - 2 is Wednesday
1759
+ - 3 is Thursday
1760
+ - 4 is Friday
1761
+ - 5 is Saturday
1762
+ - 6 is Sunday
1758
1763
"""
1759
1764
1760
1765
_prefix = "LWOM"
@@ -2055,6 +2060,7 @@ class FY5253(DateOffset):
2055
2060
http://en.wikipedia.org/wiki/4-4-5_calendar
2056
2061
2057
2062
The year may either:
2063
+
2058
2064
- end on the last X day of the Y month.
2059
2065
- end on the last X day closest to the last day of the Y month.
2060
2066
@@ -2064,17 +2070,25 @@ class FY5253(DateOffset):
2064
2070
Parameters
2065
2071
----------
2066
2072
n : int
2067
- weekday : {0, 1, ..., 6}
2068
- 0: Mondays
2069
- 1: Tuesdays
2070
- 2: Wednesdays
2071
- 3: Thursdays
2072
- 4: Fridays
2073
- 5: Saturdays
2074
- 6: Sundays
2075
- startingMonth : The month in which fiscal years end. {1, 2, ... 12}
2076
- variation : str
2077
- {"nearest", "last"} for "LastOfMonth" or "NearestEndMonth"
2073
+ weekday : int {0, 1, ..., 6}, default 0
2074
+ A specific integer for the day of the week.
2075
+
2076
+ - 0 is Monday
2077
+ - 1 is Tuesday
2078
+ - 2 is Wednesday
2079
+ - 3 is Thursday
2080
+ - 4 is Friday
2081
+ - 5 is Saturday
2082
+ - 6 is Sunday
2083
+
2084
+ startingMonth : int {1, 2, ... 12}, default 1
2085
+ The month in which the fiscal year ends.
2086
+
2087
+ variation : str, default "nearest"
2088
+ Method of employing 4-4-5 calendar. There are two options:
2089
+
2090
+ - "nearest" means year end is **weekday** closest to last day of month in year.
2091
+ - "last" means year end is final **weekday** of the final month in fiscal year.
2078
2092
"""
2079
2093
2080
2094
_prefix = "RE"
@@ -2258,6 +2272,7 @@ class FY5253Quarter(DateOffset):
2258
2272
http://en.wikipedia.org/wiki/4-4-5_calendar
2259
2273
2260
2274
The year may either:
2275
+
2261
2276
- end on the last X day of the Y month.
2262
2277
- end on the last X day closest to the last day of the Y month.
2263
2278
@@ -2271,19 +2286,28 @@ class FY5253Quarter(DateOffset):
2271
2286
Parameters
2272
2287
----------
2273
2288
n : int
2274
- weekday : {0, 1, ..., 6}
2275
- 0: Mondays
2276
- 1: Tuesdays
2277
- 2: Wednesdays
2278
- 3: Thursdays
2279
- 4: Fridays
2280
- 5: Saturdays
2281
- 6: Sundays
2282
- startingMonth : The month in which fiscal years end. {1, 2, ... 12}
2283
- qtr_with_extra_week : The quarter number that has the leap
2284
- or 14 week when needed. {1,2,3,4}
2285
- variation : str
2286
- {"nearest", "last"} for "LastOfMonth" or "NearestEndMonth"
2289
+ weekday : int {0, 1, ..., 6}, default 0
2290
+ A specific integer for the day of the week.
2291
+
2292
+ - 0 is Monday
2293
+ - 1 is Tuesday
2294
+ - 2 is Wednesday
2295
+ - 3 is Thursday
2296
+ - 4 is Friday
2297
+ - 5 is Saturday
2298
+ - 6 is Sunday
2299
+
2300
+ startingMonth : int {1, 2, ..., 12}, default 1
2301
+ The month in which fiscal years end.
2302
+
2303
+ qtr_with_extra_week : int {1, 2, 3, 4}, default 1
2304
+ The quarter number that has the leap or 14 week when needed.
2305
+
2306
+ variation : str, default "nearest"
2307
+ Method of employing 4-4-5 calendar. There are two options:
2308
+
2309
+ - "nearest" means year end is **weekday** closest to last day of month in year.
2310
+ - "last" means year end is final **weekday** of the final month in fiscal year.
2287
2311
"""
2288
2312
2289
2313
_prefix = "REQ"
@@ -2707,8 +2731,8 @@ def generate_range(start=None, end=None, periods=None, offset=BDay()):
2707
2731
2708
2732
Parameters
2709
2733
----------
2710
- start : datetime (default None)
2711
- end : datetime (default None)
2734
+ start : datetime, (default None)
2735
+ end : datetime, (default None)
2712
2736
periods : int, (default None)
2713
2737
offset : DateOffset, (default BDay())
2714
2738
0 commit comments