Table Of Contents

Search

Enter search terms or a module, class or function name.

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