Skip to content

Commit 41ca292

Browse files
committed
Add types back to NDFrame.shift
1 parent 3316ce8 commit 41ca292

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/generic.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -8886,7 +8886,9 @@ def mask(
88868886
"""
88878887

88888888
@Appender(_shared_docs["shift"] % _shared_doc_kwargs)
8889-
def shift(self, periods=1, freq=None, axis=0, fill_value=None):
8889+
def shift(
8890+
self: FrameOrSeries, periods=1, freq=None, axis=0, fill_value=None
8891+
) -> FrameOrSeries:
88908892
if periods == 0:
88918893
return self.copy()
88928894

0 commit comments

Comments
 (0)