Skip to content

Commit 2379886

Browse files
remove unwanted blank lines
1 parent 15902ed commit 2379886

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

pandas/core/frame.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5195,7 +5195,6 @@ def stack(self, level=-1, dropna=True):
51955195
51965196
Examples
51975197
--------
5198-
51995198
**Single level columns**
52005199
52015200
>>> df_single_level_cols = pd.DataFrame([[0, 1], [2, 3]],
@@ -5283,7 +5282,6 @@ def stack(self, level=-1, dropna=True):
52835282
... index=['one', 'two'],
52845283
... columns=multicol2)
52855284
5286-
52875285
Note that rows where all values are missing are dropped by
52885286
default but this behaviour can be controlled via the dropna
52895287
keyword parameter:
@@ -5299,7 +5297,6 @@ def stack(self, level=-1, dropna=True):
52995297
b NaN 1.0
53005298
two a 2.0 NaN
53015299
b NaN 3.0
5302-
53035300
>>> df_multi_level_cols3.stack(dropna=True)
53045301
X Y
53055302
one b NaN 1.0

0 commit comments

Comments
 (0)