8000 DEPR: DataFrame/Series.slice_shift by erfannariman · Pull Request #37601 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

DEPR: DataFra 8000 me/Series.slice_shift #37601

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Nov 4, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix for docstring
  • Loading branch information
erfannariman committed Nov 3, 2020
commit b610e3173f59031f3fb22f566a814c6912eae7ed
4 changes: 2 additions & 2 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -9347,12 +9347,12 @@ def shift(
def slice_shift(self: FrameOrSeries, periods: int = 1, axis=0) -> FrameOrSeries:
"""
Equivalent to `shift` without copying data.

The shifted data will not include the dropped periods and the
shifted axis will be smaller than the original.

.. deprecated:: 1.2.0
slice_shift is deprecated, use DataFrame/Series.shift instead.
slice_shift is deprecated,
use DataFrame/Series.shift instead.

Parameters
----------
Expand Down
0