pandas.tseries.offsets.Nano.rule_code#
- Nano.rule_code#
Return a string representing the base frequency.
This property provides a short string code that identifies the type of frequency offset, such as ‘h’ for hourly, ‘D’ for daily, or ‘W’ for weekly. This code is used internally for frequency string representations and parsing.
See also
tseries.offsets.Hour.rule_codeReturns a string representing the base frequency of ‘h’.
tseries.offsets.Day.rule_codeReturns a string representing the base frequency of ‘D’.
Examples
>>> pd.offsets.Hour().rule_code 'h'
>>> pd.offsets.Week(5).rule_code 'W'