Skip to content

Commit c509318

Browse files
committed
changed parameter name
1 parent f0edda0 commit c509318

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pandas/io/parsers.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,10 +1499,10 @@ def _maybe_dedup_names(self, names):
14991499
counts[col] = cur_count + 1
15001500

15011501
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),)
15041504
else:
1505-
col = '{col}.{cnt}'.format(col=col, cnt=cur_count)
1505+
col = '{column}.{count}'.format(column=col, count=cur_count)
15061506
cur_count = counts[col]
15071507

15081508
names[i] = col
@@ -1792,8 +1792,8 @@ def _cast_types(self, values, cast_type, column):
17921792
copy=True, skipna=True)
17931793
except ValueError:
17941794
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))
17971797
return values
17981798

17991799
def _do_date_conversions(self, names, data):
@@ -2543,8 +2543,8 @@ def _infer_columns(self):
25432543

25442544
while cur_count > 0:
25452545
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)
25482548
cur_count = counts[col]
25492549

25502550
this_columns[i] = col

0 commit comments

Comments
 (0)