@@ -3549,6 +3549,9 @@ cdef class FY5253(FY5253Mixin):
3549
3549
Parameters
3550
3550
----------
3551
3551
n : int
3552
+ The number of fiscal years represented.
3553
+ normalize : bool, default False
3554
+ Normalize start/end dates to midnight before generating date range.
3552
3555
weekday : int {0, 1, ..., 6}, default 0
3553
3556
A specific integer for the day of the week.
3554
3557
@@ -3571,11 +3574,31 @@ cdef class FY5253(FY5253Mixin):
3571
3574
- "nearest" means year end is **weekday** closest to last day of month in year.
3572
3575
- "last" means year end is final **weekday** of the final month in fiscal year.
3573
3576
3577
+ See Also
3578
+ --------
3579
+ :class:`~pandas.tseries.offsets.DateOffset` : Standard kind of date increment.
3580
+
3574
3581
Examples
3575
3582
--------
3583
+ In the example below the default parameters give the next 52-53 week fiscal year.
3584
+
3576
3585
>>> ts = pd.Timestamp(2022, 1, 1)
3577
3586
>>> ts + pd.offsets.FY5253()
3578
3587
Timestamp('2022-01-31 00:00:00')
3588
+
3589
+ By the parameter ``startingMonth`` we can specify
3590
+ the month in which fiscal years end.
3591
+
3592
+ >>> ts = pd.Timestamp(2022, 1, 1)
3593
+ >>> ts + pd.offsets.FY5253(startingMonth=3)
3594
+ Timestamp('2022-03-28 00:00:00')
3595
+
3596
+ 52-53 week fiscal year can be specified by
3597
+ ``weekday`` and ``variation`` parameters.
3598
+
3599
+ >>> ts = pd.Timestamp(2022, 1, 1)
3600
+ >>> ts + pd.offsets.FY5253(weekday=5, startingMonth=12, variation="last")
3601
+ Timestamp('2022-12-31 00:00:00')
3579
3602
"""
3580
3603
3581
3604
_prefix = " RE"
@@ -3729,6 +3752,9 @@ cdef class FY5253Quarter(FY5253Mixin):
3729
3752
Parameters
3730
3753
----------
3731
3754
n : int
3755
+ The number of business quarters represented.
3756
+ normalize : bool, default False
3757
+ Normalize start/end dates to midnight before generating date range.
3732
3758
weekday : int {0, 1, ..., 6}, default 0
3733
3759
A specific integer for the day of the week.
3734
3760
@@ -3754,11 +3780,32 @@ cdef class FY5253Quarter(FY5253Mixin):
3754
3780
- "nearest" means year end is **weekday** closest to last day of month in year.
3755
3781
- "last" means year end is final **weekday** of the final month in fiscal year.
3756
3782
3783
+ See Also
3784
+ --------
3785
+ :class:`~pandas.tseries.offsets.DateOffset` : Standard kind of date increment.
3786
+
3757
3787
Examples
3758
3788
--------
3789
+ In the example below the default parameters give
3790
+ the next business quarter for 52-53 week fiscal year.
3791
+
3759
3792
>>> ts = pd.Timestamp(2022, 1, 1)
3760
3793
>>> ts + pd.offsets.FY5253Quarter()
3761
3794
Timestamp('2022-01-31 00:00:00')
3795
+
3796
+ By the parameter ``startingMonth`` we can specify
3797
+ the month in which fiscal years end.
3798
+
3799
+ >>> ts = pd.Timestamp(2022, 1, 1)
3800
+ >>> ts + pd.offsets.FY5253Quarter(startingMonth=3)
3801
+ Timestamp('2022-03-28 00:00:00')
3802
+
3803
+ Business quarters for 52-53 week fiscal year can be specified by
3804
+ ``weekday`` and ``variation`` parameters.
3805
+
3806
+ >>> ts = pd.Timestamp(2022, 1, 1)
3807
+ >>> ts + pd.offsets.FY5253Quarter(weekday=5, startingMonth=12, variation="last")
3808
+ Timestamp('2022-04-02 00:00:00')
3762
3809
"""
3763
3810
3764
3811
_prefix = " REQ"
0 commit comments