pandas.tseries.offsets.BYearEnd — pandas 3.0.0rc0+33.g1fd184de2a documentation (original) (raw)

class pandas.tseries.offsets.BYearEnd#

DateOffset increments between the last business day of the year.

Attributes

See also

DateOffset

Standard kind of date increment.

Examples

from pandas.tseries.offsets import BYearEnd ts = pd.Timestamp('2020-05-24 05:01:15') ts - BYearEnd() Timestamp('2019-12-31 05:01:15') ts + BYearEnd() Timestamp('2020-12-31 05:01:15') ts + BYearEnd(3) Timestamp('2022-12-30 05:01:15') ts + BYearEnd(-3) Timestamp('2017-12-29 05:01:15') ts + BYearEnd(month=11) Timestamp('2020-11-30 05:01:15')

Attributes

Methods