diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 092cba093421a..4a501573c8cc4 100755 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -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")