Skip to content

Commit 97ab377

Browse files
cleanup
1 parent 2303347 commit 97ab377

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/reshape/pivot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,8 +558,8 @@ def _all_key(key):
558558
margin_keys.append(all_key)
559559
else:
560560
margin = (
561-
data[[cols[0]] + values]
562-
.groupby([cols[0]], observed=observed)
561+
data[cols[:1] + values]
562+
.groupby(cols[:1], observed=observed)
563563
.agg(aggfunc, **kwargs)
564564
.T
565565
)

0 commit comments

Comments
 (0)