pandas.tseries.offsets.BQuarterEnd#
- class pandas.tseries.offsets.BQuarterEnd#
DateOffset increments between the last business day of each Quarter.
startingMonth = 1 corresponds to dates like 1/31/2007, 4/30/2007, … startingMonth = 2 corresponds to dates like 2/28/2007, 5/31/2007, … startingMonth = 3 corresponds to dates like 3/30/2007, 6/29/2007, …
- Parameters:
- nint, default 1
The number of quarters represented.
- normalizebool, default False
Normalize start/end dates to midnight before generating date range.
- startingMonthint, default 3
The month of the year in which quarters end.
Attributes
Return the month of the year that anchors the quarters.
See also
DateOffsetStandard kind of date increment.
Examples
>>> from pandas.tseries.offsets import BQuarterEnd >>> ts = pd.Timestamp('2020-05-24 05:01:15') >>> ts + BQuarterEnd() Timestamp('2020-06-30 05:01:15') >>> ts + BQuarterEnd(2) Timestamp('2020-09-30 05:01:15') >>> ts + BQuarterEnd(1, startingMonth=2) Timestamp('2020-05-29 05:01:15') >>> ts + BQuarterEnd(startingMonth=2) Timestamp('2020-05-29 05:01:15')