Skip to main content
`Ctrl`+`K`

# pandas.tseries.offsets.BYearBegin.rule_code

BYearBegin.rule_code

  Return a string representing the base frequency.

  This code is used internally to identify the frequency type and includes the anchor month information.

  See also

  `tseries.offsets.Hour.rule_code`

    Returns a string representing the base frequency of ‘h’.

  `tseries.offsets.Day.rule_code`

    Returns a string representing the base frequency of ‘D’.

  Examples

      >>> pd.tseries.offsets.YearBegin(n=1, month=2).rule_code
      'YS-FEB'

      >>> pd.tseries.offsets.YearEnd(n=1, month=6).rule_code
      'YE-JUN'