Table Of Contents

Search

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

pandas.api.extensions.ExtensionArray.shift

ExtensionArray.shift(periods=1)[source]

Shift values by desired number.

Newly introduced missing values are filled with self.dtype.na_value.

New in version 0.24.0.

Parameters:

periods : int, default 1

The number of periods to shift. Negative values are allowed for shifting backwards.

Returns:
shifted : ExtensionArray
Scroll To Top