Skip to content

Commit 611bab3

Browse files
author
y-p
committed
BUG: fix broken df.info() test_info_duplicate_columns
1 parent 46e1f14 commit 611bab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ def info(self, verbose=True, buf=None, max_cols=None):
14441444

14451445
count= ""
14461446
if show_counts:
1447-
count = counts[i]
1447+
count = counts.iloc[i]
14481448

14491449
lines.append(_put_str(col, space) +
14501450
tmpl % (count, dtype))

0 commit comments

Comments
 (0)