So I converted a CSV that has names in one column and values in the second column into two arrays, one array for the name and one array for the values. I want to convert this into a table that equates the two, so the first item in the name array is linked to the first item in the value. How do I go about doing this?
import csv
data = csv.reader(open('C:\\Users\\Grant\\Documents\\finalproject\\centers.csv', 'r'), delimiter=",", quotechar='|')
names, values = [], []
for row in data:
names.append(row[0])
values.append(row[1])
{}to format