pandas / 0.24 / reference / offset_frequency.html

Date Offsets

DateOffset

DateOffset([n, normalize]) Standard kind of date increment used for a date range.

Properties

Methods

BusinessDay

BusinessDay([n, normalize, offset]) DateOffset subclass representing possibly n business days.

Properties

Methods

BusinessHour

BusinessHour([n, normalize, start, end, offset]) DateOffset subclass representing possibly n business days.

Properties

Methods

CustomBusinessDay

CustomBusinessDay([n, normalize, weekmask, …]) DateOffset subclass representing possibly n custom business days, excluding holidays.

Properties

Methods

CustomBusinessHour

CustomBusinessHour([n, normalize, weekmask, …]) DateOffset subclass representing possibly n custom business days.

Properties

Methods

MonthOffset

MonthOffset

Attributes

Properties

Methods

MonthEnd

MonthEnd DateOffset of one month end.

Properties

Methods

MonthBegin

MonthBegin DateOffset of one month at beginning.

Properties

Methods

BusinessMonthEnd

BusinessMonthEnd DateOffset increments between business EOM dates.

Properties

Methods

BusinessMonthBegin

BusinessMonthBegin DateOffset of one business month at beginning.

Properties

Methods

CustomBusinessMonthEnd

CustomBusinessMonthEnd([n, normalize, …]) DateOffset subclass representing one custom business month, incrementing between end of month dates.

Properties

Methods

CustomBusinessMonthBegin

CustomBusinessMonthBegin([n, normalize, …]) DateOffset subclass representing one custom business month, incrementing between beginning of month dates.

Properties

Methods

SemiMonthOffset

SemiMonthOffset([n, normalize, day_of_month])

Attributes

Properties

Methods

SemiMonthEnd

SemiMonthEnd([n, normalize, day_of_month]) Two DateOffset’s per month repeating on the last day of the month and day_of_month.

Properties

Methods

SemiMonthBegin

SemiMonthBegin([n, normalize, day_of_month]) Two DateOffset’s per month repeating on the first day of the month and day_of_month.

Properties

Methods

Week

Week([n, normalize, weekday]) Weekly offset.

Properties

Methods

WeekOfMonth

WeekOfMonth([n, normalize, week, weekday]) Describes monthly dates like “the Tuesday of the 2nd week of each month”.

Properties

Methods

LastWeekOfMonth

LastWeekOfMonth([n, normalize, weekday]) Describes monthly dates in last week of month like “the last Tuesday of each month”.

Properties

Methods

QuarterOffset

QuarterOffset([n, normalize, startingMonth]) Quarter representation - doesn’t call super.

Properties

Methods

BQuarterEnd

BQuarterEnd([n, normalize, startingMonth]) DateOffset increments between business Quarter dates.

Properties

Methods

BQuarterBegin

BQuarterBegin([n, normalize, startingMonth])

Attributes

Properties

Methods

QuarterEnd

QuarterEnd([n, normalize, startingMonth]) DateOffset increments between business Quarter dates.

Properties

Methods

QuarterBegin

QuarterBegin([n, normalize, startingMonth])

Attributes

Properties

Methods

YearOffset

YearOffset([n, normalize, month]) DateOffset that just needs a month.

Properties

Methods

BYearEnd

BYearEnd([n, normalize, month]) DateOffset increments between business EOM dates.

Properties

Methods

BYearBegin

BYearBegin([n, normalize, month]) DateOffset increments between business year begin dates.

Properties

Methods

YearEnd

YearEnd([n, normalize, month]) DateOffset increments between calendar year ends.

Properties

Methods

YearBegin

YearBegin([n, normalize, month]) DateOffset increments between calendar year begin dates.

Properties

Methods

FY5253

FY5253([n, normalize, weekday, …]) Describes 52-53 week fiscal year.

Properties

Methods

FY5253Quarter

FY5253Quarter([n, normalize, weekday, …]) DateOffset increments between business quarter dates for 52-53 week fiscal year (also known as a 4-4-5 calendar).

Properties

Methods

Easter

Easter DateOffset for the Easter holiday using logic defined in dateutil.

Properties

Methods

Tick

Tick([n, normalize])

Attributes

Properties

Methods

Day

Day([n, normalize])

Attributes

Properties

Methods

Hour

Hour([n, normalize])

Attributes

Properties

Methods

Minute

Minute([n, normalize])

Attributes

Properties

Methods

Second

Second([n, normalize])

Attributes

Properties

Methods

Milli

Milli([n, normalize])

Attributes

Properties

Methods

Micro

Micro([n, normalize])

Attributes

Properties

Methods

Nano

Nano([n, normalize])

Attributes

Properties

Methods

BDay

Properties

BDay.base Returns a copy of the calling offset object with n=1 and all other attributes equal.
BDay.freqstr
BDay.kwds
BDay.name
BDay.nanos
BDay.normalize
BDay.offset Alias for self._offset.
BDay.rule_code

Methods

BDay.apply(other)
BDay.apply_index
BDay.copy
BDay.isAnchored()
BDay.onOffset(dt)
BDay.rollback(dt) Roll provided date backward to next offset only if not on offset.
BDay.rollforward(dt) Roll provided date forward to next offset only if not on offset.

BMonthEnd

Properties

BMonthEnd.base Returns a copy of the calling offset object with n=1 and all other attributes equal.
BMonthEnd.freqstr
BMonthEnd.kwds
BMonthEnd.name
BMonthEnd.nanos
BMonthEnd.normalize
BMonthEnd.rule_code

Methods

BMonthEnd.apply(other)
BMonthEnd.apply_index
BMonthEnd.copy
BMonthEnd.isAnchored()
BMonthEnd.onOffset(dt)
BMonthEnd.rollback(dt) Roll provided date backward to next offset only if not on offset.
BMonthEnd.rollforward(dt) Roll provided date forward to next offset only if not on offset.

BMonthBegin

Properties

BMonthBegin.base Returns a copy of the calling offset object with n=1 and all other attributes equal.
BMonthBegin.freqstr
BMonthBegin.kwds
BMonthBegin.name
BMonthBegin.nanos
BMonthBegin.normalize
BMonthBegin.rule_code

Methods

BMonthBegin.apply(other)
BMonthBegin.apply_index
BMonthBegin.copy
BMonthBegin.isAnchored()
BMonthBegin.onOffset(dt)
BMonthBegin.rollback(dt) Roll provided date backward to next offset only if not on offset.
BMonthBegin.rollforward(dt) Roll provided date forward to next offset only if not on offset.

CBMonthEnd

Properties

CBMonthEnd.base Returns a copy of the calling offset object with n=1 and all other attributes equal.
CBMonthEnd.cbday_roll Define default roll function to be called in apply method.
CBMonthEnd.freqstr
CBMonthEnd.kwds
CBMonthEnd.m_offset
CBMonthEnd.month_roll Define default roll function to be called in apply method.
CBMonthEnd.name
CBMonthEnd.nanos
CBMonthEnd.normalize
CBMonthEnd.offset Alias for self._offset.
CBMonthEnd.rule_code

Methods

CBMonthEnd.apply(other)
CBMonthEnd.apply_index Vectorized apply of DateOffset to DatetimeIndex, raises NotImplentedError for offsets without a vectorized implementation.
CBMonthEnd.copy
CBMonthEnd.isAnchored()
CBMonthEnd.onOffset(dt)
CBMonthEnd.rollback(dt) Roll provided date backward to next offset only if not on offset.
CBMonthEnd.rollforward(dt) Roll provided date forward to next offset only if not on offset.

CBMonthBegin

Properties

CBMonthBegin.base Returns a copy of the calling offset object with n=1 and all other attributes equal.
CBMonthBegin.cbday_roll Define default roll function to be called in apply method.
CBMonthBegin.freqstr
CBMonthBegin.kwds
CBMonthBegin.m_offset
CBMonthBegin.month_roll Define default roll function to be called in apply method.
CBMonthBegin.name
CBMonthBegin.nanos
CBMonthBegin.normalize
CBMonthBegin.offset Alias for self._offset.
CBMonthBegin.rule_code

Methods

CBMonthBegin.apply(other)
CBMonthBegin.apply_index Vectorized apply of DateOffset to DatetimeIndex, raises NotImplentedError for offsets without a vectorized implementation.
CBMonthBegin.copy
CBMonthBegin.isAnchored()
CBMonthBegin.onOffset(dt)
CBMonthBegin.rollback(dt) Roll provided date backward to next offset only if not on offset.
CBMonthBegin.rollforward(dt) Roll provided date forward to next offset only if not on offset.

CDay

Properties

CDay.base Returns a copy of the calling offset object with n=1 and all other attributes equal.
CDay.freqstr
CDay.kwds
CDay.name
CDay.nanos
CDay.normalize
CDay.offset Alias for self._offset.
CDay.rule_code

Methods

CDay.apply(other)
CDay.apply_index(i) Vectorized apply of DateOffset to DatetimeIndex, raises NotImplentedError for offsets without a vectorized implementation.
CDay.copy
CDay.isAnchored()
CDay.onOffset(dt)
CDay.rollback(dt) Roll provided date backward to next offset only if not on offset.
CDay.rollforward(dt) Roll provided date forward to next offset only if not on offset.

Frequencies

to_offset(freq) Return DateOffset object from string or tuple representation or datetime.timedelta object

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.24.2/reference/offset_frequency.html