MCPcopy
hub / github.com/pandas-dev/pandas / shift

Method shift

pandas/core/internals/managers.py:546–550  ·  view source on GitHub ↗
(self, periods: int, fill_value)

Source from the content-addressed store, hash-verified

544 return self.apply("pad_or_backfill", inplace=inplace, **kwargs)
545
546 def shift(self, periods: int, fill_value) -> Self:
547 if fill_value is lib.no_default:
548 fill_value = None
549
550 return self.apply("shift", periods=periods, fill_value=fill_value)
551
552 def setitem(self, indexer, value) -> Self:
553 """

Callers

nothing calls this directly

Calls 1

applyMethod · 0.95

Tested by

no test coverage detected