pandas.errors.NullFrequencyError#
- exceptionpandas.errors.NullFrequencyError[source] #
Exception raised when a
freq
cannot be null.Particularly
DatetimeIndex.shift
,TimedeltaIndex.shift
,PeriodIndex.shift
.Examples
>>> df = pd.DatetimeIndex(["2011年01月01日 10:00", "2011年01月01日"], freq=None) >>> df.shift(2) Traceback (most recent call last): NullFrequencyError: Cannot shift with no freq