I'm trying to read some data from an excel file in python
I want to place the data into a 2D list
[[A,1,2...],[B,2,3...],[C,5,6...]]
where A, B, C are the col headers and the numbers are the rows in that column
right now I'm using just to test if this will work so i know the code doesn't do exactly what i said above
#Blank list array
product = []
k = 0
#Read in Data
for r in range(1,sheet.nrows):
k += 1;
product[k,1] = sheet.cell(r,1).value
im getting errors saying that list indices must be integers, not tuples is there a way to populate a list like this with a variable because I do not know how many rows a column might have in the excel file I've heard of dictionaries but from what I've read I don't think those would be the best option for me since they are more "key" "value" and i have multiple values for one "key"