File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -276,19 +276,19 @@ def _make_index(
276
276
index : Index | None
277
277
if isinstance (self .index_col , list ) and len (self .index_col ):
278
278
to_remove = []
279
- index = []
279
+ indexes = []
280
280
for idx in self .index_col :
281
281
if isinstance (idx , str ):
282
282
raise ValueError (f"Index { idx } invalid" )
283
283
to_remove .append (idx )
284
- index .append (alldata [idx ])
284
+ indexes .append (alldata [idx ])
285
285
# remove index items from content and columns, don't pop in
286
286
# loop
287
287
for i in sorted (to_remove , reverse = True ):
288
288
alldata .pop (i )
289
289
if not self ._implicit_index :
290
290
columns .pop (i )
291
- index = self ._agg_index (index )
291
+ index = self ._agg_index (indexes )
292
292
293
293
# add names for the index
294
294
if indexnamerow :
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ def read(
293
293
if self ._should_parse_dates (i ):
294
294
values = date_converter (
295
295
values ,
296
- col = self .index_names [index ]
296
+ col = self .index_names [i ]
297
297
if self .index_names is not None
298
298
else None ,
299
299
dayfirst = self .dayfirst ,
You can’t perform that action at this time.
0 commit comments