pandas.tseries.offsets.BYearEnd.month#

BYearEnd.month#

Return the month of the year on which this offset applies.

Returns an integer representing the month (1-12) that this offset targets. For year-based offsets, this determines which month is used for calculations.

See also

tseries.offsets.YearEnd

Offset to end of year.

tseries.offsets.YearBegin

Offset to start of year.

tseries.offsets.BYearEnd

Offset to last business day of year.

tseries.offsets.BYearBegin

Offset to first business day of year.

Examples

>>> pd.offsets.BYearBegin().month
1
>>> pd.offsets.BYearBegin(month=6).month
6