Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pandas/io/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1654,7 +1654,7 @@ def _maybe_dedup_names(self, names):

def _maybe_make_multi_index_columns(self, columns, col_names=None):
# possibly create a column mi here
if _is_potential_multi_index(columns):
if _is_potential_multi_index(columns, self.index_col):
columns = MultiIndex.from_tuples(columns, names=col_names)
return columns

Expand Down