Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
945e95080c |
@ -24,6 +24,11 @@ columns = lines[0].split(';')
|
||||
new_head = []
|
||||
column_to_column = []
|
||||
|
||||
name_to_column = {}
|
||||
|
||||
for i,n in enumerate(lines[0]):
|
||||
name_to_column[n] = i
|
||||
|
||||
for i,c in enumerate(columns_wanted):
|
||||
if c.find('=') != -1:
|
||||
old_name, new_name = c.split('=')
|
||||
@ -42,7 +47,6 @@ for i,c in enumerate(columns_wanted):
|
||||
print('Error: The column %s does not exist!' % (old_name))
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
column_to_column.append(index_old)
|
||||
|
||||
new_lines = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user