@@ -468,8 +468,8 @@ def __init__(self, f, engine='python', **kwds):
468
468
469
469
# might mutate self.engine
470
470
self .options , self .engine = self ._clean_options (options , engine )
471
- if 'has_index_labels ' in kwds :
472
- self .options ['has_index_labels ' ] = kwds ['has_index_labels ' ]
471
+ if 'has_index_names ' in kwds :
472
+ self .options ['has_index_names ' ] = kwds ['has_index_names ' ]
473
473
474
474
self ._make_engine (self .engine )
475
475
@@ -994,7 +994,7 @@ def TextParser(*args, **kwds):
994
994
rows will be discarded
995
995
index_col : int or list, default None
996
996
Column or columns to use as the (possibly hierarchical) index
997
- has_index_labels : boolean, default False
997
+ has_index_names : boolean, default False
998
998
True if the cols defined in index_col have an index name and are
999
999
not in the header
1000
1000
na_values : iterable, default None
@@ -1065,9 +1065,9 @@ def __init__(self, f, **kwds):
1065
1065
self .doublequote = kwds ['doublequote' ]
1066
1066
self .skipinitialspace = kwds ['skipinitialspace' ]
1067
1067
self .quoting = kwds ['quoting' ]
1068
- self .has_index_labels = False
1069
- if 'has_index_labels ' in kwds :
1070
- self .has_index_labels = kwds ['has_index_labels ' ]
1068
+ self .has_index_names = False
1069
+ if 'has_index_names ' in kwds :
1070
+ self .has_index_names = kwds ['has_index_names ' ]
1071
1071
1072
1072
self .verbose = kwds ['verbose' ]
1073
1073
self .converters = kwds ['converters' ]
@@ -1175,7 +1175,7 @@ def read(self, rows=None):
1175
1175
#handle new style for names in index
1176
1176
count_empty_content_vals = count_empty_vals (content [0 ])
1177
1177
indexnamerow = None
1178
- if self .has_index_labels and count_empty_content_vals == len (columns ):
1178
+ if self .has_index_names and count_empty_content_vals == len (columns ):
1179
1179
indexnamerow = content [0 ]
1180
1180
content = content [1 :]
1181
1181
@@ -1739,7 +1739,7 @@ def __repr__(self):
1739
1739
return object .__repr__ (self )
1740
1740
1741
1741
def parse (self , sheetname , header = 0 , skiprows = None , skip_footer = 0 ,
1742
- index_col = None , has_index_labels = False , parse_cols = None , parse_dates = False ,
1742
+ index_col = None , has_index_names = False , parse_cols = None , parse_dates = False ,
1743
1743
date_parser = None , na_values = None , thousands = None , chunksize = None ,
1744
1744
** kwds ):
1745
1745
"""
@@ -1758,7 +1758,7 @@ def parse(self, sheetname, header=0, skiprows=None, skip_footer=0,
1758
1758
index_col : int, default None
1759
1759
Column to use as the row labels of the DataFrame. Pass None if
1760
1760
there is no such column
1761
- has_index_labels : boolean, default False
1761
+ has_index_names : boolean, default False
1762
1762
True if the cols defined in index_col have an index name and are
1763
1763
not in the header
1764
1764
parse_cols : int or list, default None
@@ -1782,7 +1782,7 @@ def parse(self, sheetname, header=0, skiprows=None, skip_footer=0,
1782
1782
False : self ._parse_xls }
1783
1783
return choose [self .use_xlsx ](sheetname , header = header ,
1784
1784
skiprows = skiprows , index_col = index_col ,
1785
- has_index_labels = has_index_labels ,
1785
+ has_index_names = has_index_names ,
1786
1786
parse_cols = parse_cols ,
1787
1787
parse_dates = parse_dates ,
1788
1788
date_parser = date_parser ,
@@ -1824,7 +1824,7 @@ def _excel2num(x):
1824
1824
return i in parse_cols
1825
1825
1826
1826
def _parse_xlsx (self , sheetname , header = 0 , skiprows = None ,
1827
- skip_footer = 0 , index_col = None , has_index_labels = False ,
1827
+ skip_footer = 0 , index_col = None , has_index_names = False ,
1828
1828
parse_cols = None , parse_dates = False , date_parser = None ,
1829
1829
na_values = None , thousands = None , chunksize = None ):
1830
1830
sheet = self .book .get_sheet_by_name (name = sheetname )
@@ -1848,7 +1848,7 @@ def _parse_xlsx(self, sheetname, header=0, skiprows=None,
1848
1848
data [header ] = _trim_excel_header (data [header ])
1849
1849
1850
1850
parser = TextParser (data , header = header , index_col = index_col ,
1851
- has_index_labels = has_index_labels ,
1851
+ has_index_names = has_index_names ,
1852
1852
na_values = na_values ,
1853
1853
thousands = thousands ,
1854
1854
parse_dates = parse_dates ,
@@ -1860,7 +1860,7 @@ def _parse_xlsx(self, sheetname, header=0, skiprows=None,
1860
1860
return parser .read ()
1861
1861
1862
1862
def _parse_xls (self , sheetname , header = 0 , skiprows = None ,
1863
- skip_footer = 0 , index_col = None , has_index_labels = None ,
1863
+ skip_footer = 0 , index_col = None , has_index_names = None ,
1864
1864
parse_cols = None , parse_dates = False , date_parser = None ,
1865
1865
na_values = None , thousands = None , chunksize = None ):
1866
1866
from xlrd import xldate_as_tuple , XL_CELL_DATE , XL_CELL_ERROR
@@ -1894,7 +1894,7 @@ def _parse_xls(self, sheetname, header=0, skiprows=None,
1894
1894
data [header ] = _trim_excel_header (data [header ])
1895
1895
1896
1896
parser = TextParser (data , header = header , index_col = index_col ,
1897
- has_index_labels = has_index_labels ,
1897
+ has_index_names = has_index_names ,
1898
1898
na_values = na_values ,
1899
1899
thousands = thousands ,
1900
1900
parse_dates = parse_dates ,
0 commit comments