Skip to content

Commit 565c41c

Browse files
committed
Add more comments
1 parent 6215146 commit 565c41c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/core/reshape/pivot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ def _convert_by(by):
369369
def pivot(data, index=None, columns=None, values=None):
370370
if values is None:
371371
if index is None:
372+
# Build cols for indexes.
372373
cols = [columns]
373374
else:
374375
if is_list_like(index):

0 commit comments

Comments
 (0)