pandas.tseries.offsets.QuarterEnd#

class pandas.tseries.offsets.QuarterEnd#

DateOffset increments between Quarter end dates.

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/31/2007, 6/30/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

startingMonth

Return the month of the year that anchors the quarters.

See also

DateOffset

Standard kind of date increment.

Examples

>>> ts = pd.Timestamp(2022, 1, 1)
>>> ts + pd.offsets.QuarterEnd()
Timestamp('2022-03-31 00:00:00')