mirror of
https://github.com/rasbt/python_reference.git
synced 2025-02-17 13:58:13 +00:00
small bugfix
This commit is contained in:
parent
ca6688c735
commit
ee005932d1
|
@ -10,5 +10,5 @@ def read_csv(csv_path):
|
||||||
for line in in_csv:
|
for line in in_csv:
|
||||||
line = line.strip().split(',')
|
line = line.strip().split(',')
|
||||||
for i in range(len(line)-1):
|
for i in range(len(line)-1):
|
||||||
data[header[i]].append(line[1])
|
data[header[i]].append(line[i])
|
||||||
return data
|
return data
|
||||||
|
|
Loading…
Reference in New Issue
Block a user