As part of a project I am doing, I need to create a league table and in order for it to be ordered by points, I need to access the points column from excel and order it. So far the code I have written for this is:
output = []
x = open("table.csv", "rU")
for line in x:
cells = line.split(",")
output.append((cells[7]))
print output
Points is the last of all the columns with 7 in total. The output for this is:
['Points\n', '0\n', '0\n', '0\n', '0\n', '0\n', '0\n', '0\n', '0\n', '0\n', '0\n']
Is there a way to get to just the figures and then order them without using pandas?
Thank you