File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10563,7 +10563,7 @@ def shift(
10563
10563
For numeric data, ``np.nan`` is used.
10564
10564
For datetime, timedelta, or period data, etc. :attr:`NaT` is used.
10565
10565
For extension dtypes, ``self.dtype.na_value`` is used.
10566
- suffix: str, optional
10566
+ suffix : str, optional
10567
10567
If str and periods is an iterable, this is added after the column
10568
10568
name and before the shift value for each shifted column name.
10569
10569
@@ -10632,7 +10632,7 @@ def shift(
10632
10632
2020-01-07 30 33 37
10633
10633
2020-01-08 45 48 52
10634
10634
10635
- >>> df['Col1'].shift(periods=[1, 2])
10635
+ >>> df['Col1'].shift(periods=[0, 1, 2])
10636
10636
Col1_0 Col1_1 Col1_2
10637
10637
2020-01-01 10 NaN NaN
10638
10638
2020-01-02 20 10.0 NaN
You can’t perform that action at this time.
0 commit comments