@@ -468,8 +468,8 @@ def __init__(self, f, engine='python', **kwds):
468468
469469 # might mutate self.engine
470470 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 ' ]
473473
474474 self ._make_engine (self .engine )
475475
@@ -994,7 +994,7 @@ def TextParser(*args, **kwds):
994994 rows will be discarded
995995 index_col : int or list, default None
996996 Column or columns to use as the (possibly hierarchical) index
997- has_index_labels : boolean, default False
997+ has_index_names : boolean, default False
998998 True if the cols defined in index_col have an index name and are
999999 not in the header
10001000 na_values : iterable, default None
@@ -1065,9 +1065,9 @@ def __init__(self, f, **kwds):
10651065 self .doublequote = kwds ['doublequote' ]
10661066 self .skipinitialspace = kwds ['skipinitialspace' ]
10671067 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 ' ]
10711071
10721072 self .verbose = kwds ['verbose' ]
10731073 self .converters = kwds ['converters' ]
@@ -1175,7 +1175,7 @@ def read(self, rows=None):
11751175 #handle new style for names in index
11761176 count_empty_content_vals = count_empty_vals (content [0 ])
11771177 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 ):
11791179 indexnamerow = content [0 ]
11801180 content = content [1 :]
11811181
@@ -1739,7 +1739,7 @@ def __repr__(self):
17391739 return object .__repr__ (self )
17401740
17411741 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 ,
17431743 date_parser = None , na_values = None , thousands = None , chunksize = None ,
17441744 ** kwds ):
17451745 """
@@ -1758,7 +1758,7 @@ def parse(self, sheetname, header=0, skiprows=None, skip_footer=0,
17581758 index_col : int, default None
17591759 Column to use as the row labels of the DataFrame. Pass None if
17601760 there is no such column
1761- has_index_labels : boolean, default False
1761+ has_index_names : boolean, default False
17621762 True if the cols defined in index_col have an index name and are
17631763 not in the header
17641764 parse_cols : int or list, default None
@@ -1782,7 +1782,7 @@ def parse(self, sheetname, header=0, skiprows=None, skip_footer=0,
17821782 False : self ._parse_xls }
17831783 return choose [self .use_xlsx ](sheetname , header = header ,
17841784 skiprows = skiprows , index_col = index_col ,
1785- has_index_labels = has_index_labels ,
1785+ has_index_names = has_index_names ,
17861786 parse_cols = parse_cols ,
17871787 parse_dates = parse_dates ,
17881788 date_parser = date_parser ,
@@ -1824,7 +1824,7 @@ def _excel2num(x):
18241824 return i in parse_cols
18251825
18261826 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 ,
18281828 parse_cols = None , parse_dates = False , date_parser = None ,
18291829 na_values = None , thousands = None , chunksize = None ):
18301830 sheet = self .book .get_sheet_by_name (name = sheetname )
@@ -1848,7 +1848,7 @@ def _parse_xlsx(self, sheetname, header=0, skiprows=None,
18481848 data [header ] = _trim_excel_header (data [header ])
18491849
18501850 parser = TextParser (data , header = header , index_col = index_col ,
1851- has_index_labels = has_index_labels ,
1851+ has_index_names = has_index_names ,
18521852 na_values = na_values ,
18531853 thousands = thousands ,
18541854 parse_dates = parse_dates ,
@@ -1860,7 +1860,7 @@ def _parse_xlsx(self, sheetname, header=0, skiprows=None,
18601860 return parser .read ()
18611861
18621862 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 ,
18641864 parse_cols = None , parse_dates = False , date_parser = None ,
18651865 na_values = None , thousands = None , chunksize = None ):
18661866 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,
18941894 data [header ] = _trim_excel_header (data [header ])
18951895
18961896 parser = TextParser (data , header = header , index_col = index_col ,
1897- has_index_labels = has_index_labels ,
1897+ has_index_names = has_index_names ,
18981898 na_values = na_values ,
18991899 thousands = thousands ,
19001900 parse_dates = parse_dates ,
0 commit comments