Skip to content

Commit 255b16c

Browse files
committed
Missed shift
1 parent 77dc845 commit 255b16c

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

pandas/core/generic.py

+2-7
Original file line numberDiff line numberDiff line change
@@ -11213,13 +11213,8 @@ def shift(
1121311213
Examples
1121411214
--------
1121511215
>>> df = pd.DataFrame(
11216-
... {
11217-
... {
11218-
... "Col1": [10, 20, 15, 30, 45],
11219-
... "Col2": [13, 23, 18, 33, 48],
11220-
... "Col3": [17, 27, 22, 37, 52],
11221-
... }
11222-
... },
11216+
... [[10, 13, 17], [20, 23, 27], [15, 18, 22], [30, 33, 37], [45, 48, 52]],
11217+
... columns=["Col1", "Col2", "Col3"],
1122311218
... index=pd.date_range("2020-01-01", "2020-01-05"),
1122411219
... )
1122511220
>>> df

0 commit comments

Comments
 (0)