Skip to content

Commit

Permalink
changed parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
makeajourney committed Jan 9, 2019
1 parent f0edda0 commit c509318
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pandas/io/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1499,10 +1499,10 @@ def _maybe_dedup_names(self, names):
counts[col] = cur_count + 1

if is_potential_mi:
col = col[:-1] + ('{col}.{cnt}'.format(
col=col[-1], cnt=cur_count),)
col = col[:-1] + ('{column}.{count}'.format(
column=col[-1], count=cur_count),)
else:
col = '{col}.{cnt}'.format(col=col, cnt=cur_count)
col = '{column}.{count}'.format(column=col, count=cur_count)
cur_count = counts[col]

names[i] = col
Expand Down Expand Up @@ -1792,8 +1792,8 @@ def _cast_types(self, values, cast_type, column):
copy=True, skipna=True)
except ValueError:
raise ValueError(
"Unable to convert column {column} to type {type}".format(
column=column, type=cast_type))
"Unable to convert column {column} to type {cast_type}".format(
column=column, cast_type=cast_type))
return values

def _do_date_conversions(self, names, data):
Expand Down Expand Up @@ -2543,8 +2543,8 @@ def _infer_columns(self):

while cur_count > 0:
counts[col] = cur_count + 1
col = "{columns}.{count}".format(
columns=col, count=cur_count)
col = "{column}.{count}".format(
column=col, count=cur_count)
cur_count = counts[col]

this_columns[i] = col
Expand Down

0 comments on commit c509318

Please sign in to comment.