diff --git a/read_csv_to_dict.py b/read_csv_to_dict.py index 9db9b84..b9c5e94 100644 --- a/read_csv_to_dict.py +++ b/read_csv_to_dict.py @@ -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