new to programming here.
Some context: Opened a very large csv file, removed the unnecessary data in first few lines using a bit of code (can see previous post to see code).
Now i'd like to create a matrix. To determine matrix size, I resorted to using the max value of one column and the max value of another column. This is my code so far, however I couldn't get it to work for some odd reason:
firstcolumn_max = max(readcsv, key=op.itemgetter(0))
secondcolumn_max = max(readcsv, key=op.itemgetter(1))
matrix_size = max(firstcolum_max, secondcolumn_max)
matrix=[[0 for i in range(matrix_size)] for i in range(matrix_size)]
for i in readcsv:.........
If you're completely new to panda, their tutorial is pretty good and doesn't take long!