mirror of
https://github.com/rasbt/python_reference.git
synced 2024-11-24 04:21:15 +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…
Reference in New Issue
Block a user