pandas.tseries.offsets.SemiMonthBegin

class pandas.tseries.offsets.SemiMonthBegin(n=1, normalize=False, day_of_month=None)[source]

Two DateOffset’s per month repeating on the first day of the month and day_of_month.

New in version 0.19.0.

Parameters

n : int

normalize : bool, default False

day_of_month : int, {2, 3,…,27}, default 15

Attributes

base

Returns a copy of the calling offset object with n=1 and all other attributes equal.

kwds

name

nanos

rule_code

Methods

__call__

apply(other)

apply_index

copy

isAnchored()

onOffset(dt)

rollback(dt)

Roll provided date backward to next offset only if not on offset.

rollforward(dt)

Roll provided date forward to next offset only if not on offset.

Scroll To Top