mirror of
https://github.com/rasbt/python_reference.git
synced 2025-03-13 17:19:52 +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:
|
||||
line = line.strip().split(',')
|
||||
for i in range(len(line)-1):
|
||||
data[header[i]].append(line[1])
|
||||
data[header[i]].append(line[i])
|
||||
return data
|
||||
|
Loading…
x
Reference in New Issue
Block a user