Skip to content

Commit

Permalink
fix python parser too
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Kandel committed Nov 22, 2016
1 parent 72adaf2 commit 17e44dd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pandas/io/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2083,6 +2083,12 @@ def _infer_columns(self):
# We have an empty file, so check
# if columns are provided. That will
# serve as the 'line' for parsing
if have_mi_columns:
if clear_buffer:
self._clear_buffer()
columns.append([None] * len(this_columns))
return columns, num_original_columns

if not self.names:
raise EmptyDataError(
"No columns to parse from file")
Expand Down

0 comments on commit 17e44dd

Please sign in to comment.