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

class pandas.tseries.offsets.HalfYearBegin#

DateOffset increments between half-year start dates.

startingMonth = 1 corresponds to dates like 1/01/2007, 7/01/2007, … startingMonth = 2 corresponds to dates like 2/01/2007, 8/01/2007, … startingMonth = 3 corresponds to dates like 3/01/2007, 9/01/2007, …

Attributes

See also

DateOffset

Standard kind of date increment.

Examples

ts = pd.Timestamp(2022, 2, 1) ts + pd.offsets.HalfYearBegin() Timestamp('2022-07-01 00:00:00')

Attributes

Methods