Skip to main content
`Ctrl`+`K`

# pandas.tseries.offsets.SemiMonthBegin.rule_code

SemiMonthBegin.rule_code

  Return a string representing the base frequency.

  This returns the frequency code with the day of month suffix, such as “SMS-15” for SemiMonthBegin or “SME-15” for SemiMonthEnd.

  See also

  `tseries.offsets.SemiMonthBegin`

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

  `tseries.offsets.SemiMonthEnd`

    Two DateOffset’s per month repeating on the last day of the month & day_of_month.

  Examples

      >>> pd.offsets.SemiMonthBegin().rule_code
      'SMS-15'

      >>> pd.offsets.SemiMonthEnd().rule_code
      'SME-15'

      >>> pd.offsets.SemiMonthBegin(day_of_month=10).rule_code
      'SMS-10'