Skip to content

Commit b78d7d6

Browse files
fix docstring
1 parent 23d9142 commit b78d7d6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/generic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10563,7 +10563,7 @@ def shift(
1056310563
For numeric data, ``np.nan`` is used.
1056410564
For datetime, timedelta, or period data, etc. :attr:`NaT` is used.
1056510565
For extension dtypes, ``self.dtype.na_value`` is used.
10566-
suffix: str, optional
10566+
suffix : str, optional
1056710567
If str and periods is an iterable, this is added after the column
1056810568
name and before the shift value for each shifted column name.
1056910569
@@ -10632,7 +10632,7 @@ def shift(
1063210632
2020-01-07 30 33 37
1063310633
2020-01-08 45 48 52
1063410634
10635-
>>> df['Col1'].shift(periods=[1, 2])
10635+
>>> df['Col1'].shift(periods=[0, 1, 2])
1063610636
Col1_0 Col1_1 Col1_2
1063710637
2020-01-01 10 NaN NaN
1063810638
2020-01-02 20 10.0 NaN

0 commit comments

Comments
 (0)