Skip to content

Commit 0a6e4be

Browse files
committed
change comments
1 parent d795e86 commit 0a6e4be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/reshape/pivot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,11 +372,10 @@ def pivot(data, index=None, columns=None, values=None):
372372
# Build cols for indexes.
373373
cols = [columns]
374374
else:
375+
# Accept multiple column indexes.
375376
if is_list_like(index):
376-
# If a given index is a list, set cols to index.
377377
cols = index
378378
else:
379-
# If a given index is not a list, set cols to a list of index.
380379
cols = [index]
381380
cols.append(columns)
382381
append = index is None

0 commit comments

Comments
 (0)