pandas.DatetimeIndex.to_perioddelta

DatetimeIndex.to_perioddelta(freq)[source]

Calcuates TimedeltaIndex of difference between index values and index converted to PeriodIndex at specified freq. Used for vectorized offsets

New in version 0.17.0.

Parameters:freq : Period frequency
Returns:y : TimedeltaIndex
Scroll To Top