Skip to content

Commit 747d245

Browse files
Shorten overly long lines in examples.
1 parent 718f212 commit 747d245

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/core/frame.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5216,7 +5216,8 @@ def stack(self, level=-1, dropna=True):
52165216
52175217
**Multi level columns: simple case**
52185218
5219-
>>> multicol1 = pd.MultiIndex.from_tuples([('weight', 'kg'), ('weight', 'pounds')])
5219+
>>> multicol1 = pd.MultiIndex.from_tuples([('weight', 'kg'),
5220+
... ('weight', 'pounds')])
52205221
>>> df_multi_level_cols1 = pd.DataFrame([[1, 2], [2, 4]],
52215222
... index=['cat', 'dog'],
52225223
... columns=multicol1)
@@ -5237,7 +5238,8 @@ def stack(self, level=-1, dropna=True):
52375238
52385239
**Missing values**
52395240
5240-
>>> multicol2 = pd.MultiIndex.from_tuples([('weight', 'kg'), ('height', 'm')])
5241+
>>> multicol2 = pd.MultiIndex.from_tuples([('weight', 'kg'),
5242+
... ('height', 'm')])
52415243
>>> df_multi_level_cols2 = pd.DataFrame([[1.0, 2.0], [3.0, 4.0]],
52425244
... index=['cat', 'dog'],
52435245
... columns=multicol2)

0 commit comments

Comments
 (0)