@@ -1499,10 +1499,10 @@ def _maybe_dedup_names(self, names):
1499
1499
counts [col ] = cur_count + 1
1500
1500
1501
1501
if is_potential_mi :
1502
- col = col [:- 1 ] + ('{col }.{cnt }' .format (
1503
- col = col [- 1 ], cnt = cur_count ),)
1502
+ col = col [:- 1 ] + ('{column }.{count }' .format (
1503
+ column = col [- 1 ], count = cur_count ),)
1504
1504
else :
1505
- col = '{col }.{cnt }' .format (col = col , cnt = cur_count )
1505
+ col = '{column }.{count }' .format (column = col , count = cur_count )
1506
1506
cur_count = counts [col ]
1507
1507
1508
1508
names [i ] = col
@@ -1792,8 +1792,8 @@ def _cast_types(self, values, cast_type, column):
1792
1792
copy = True , skipna = True )
1793
1793
except ValueError :
1794
1794
raise ValueError (
1795
- "Unable to convert column {column} to type {type }" .format (
1796
- column = column , type = cast_type ))
1795
+ "Unable to convert column {column} to type {cast_type }" .format (
1796
+ column = column , cast_type = cast_type ))
1797
1797
return values
1798
1798
1799
1799
def _do_date_conversions (self , names , data ):
@@ -2543,8 +2543,8 @@ def _infer_columns(self):
2543
2543
2544
2544
while cur_count > 0 :
2545
2545
counts [col ] = cur_count + 1
2546
- col = "{columns }.{count}" .format (
2547
- columns = col , count = cur_count )
2546
+ col = "{column }.{count}" .format (
2547
+ column = col , count = cur_count )
2548
2548
cur_count = counts [col ]
2549
2549
2550
2550
this_columns [i ] = col
0 commit comments