Skip to main content
`Ctrl`+`K`

# pandas.tseries.offsets.CustomBusinessHour.rule_code

CustomBusinessHour.rule_code

  Return a string representing the base frequency.

  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.offsets.Hour().rule_code
      'h'

      >>> pd.offsets.Week(5).rule_code
      'W'