@@ -1509,10 +1509,10 @@ def read(self, nrows=None):
1509
1509
if self ._first_chunk :
1510
1510
self ._first_chunk = False
1511
1511
names = self ._maybe_dedup_names (self .orig_names )
1512
-
1513
1512
index , columns , col_dict = _get_empty_meta (
1514
1513
names , self .index_col , self .index_names ,
1515
1514
dtype = self .kwds .get ('dtype' ))
1515
+ columns = self ._maybe_make_multi_index_columns (columns , self .col_names )
1516
1516
1517
1517
if self .usecols is not None :
1518
1518
columns = self ._filter_usecols (columns )
@@ -1979,8 +1979,10 @@ def read(self, rows=None):
1979
1979
if not len (content ): # pragma: no cover
1980
1980
# DataFrame with the right metadata, even though it's length 0
1981
1981
names = self ._maybe_dedup_names (self .orig_names )
1982
- return _get_empty_meta (names , self .index_col ,
1982
+ index , columns , col_dict = _get_empty_meta (names , self .index_col ,
1983
1983
self .index_names )
1984
+ columns = self ._maybe_make_multi_index_columns (columns , self .col_names )
1985
+ return index , columns , col_dict
1984
1986
1985
1987
# handle new style for names in index
1986
1988
count_empty_content_vals = count_empty_vals (content [0 ])
0 commit comments