0
Hi I have table of values stored in a csv file and the table is organized the following way:
Method1,,Method2,
T1,T2,T1,T2
a1,b1,c1,d1
a2,b2,c2,d2
a3,b3,c3,d3
a4,b4,c4,d4
One example of something I have to do with this table is to compute the maximum of each row and then for each column I compute the number of times the column equals the maximum value. I am doing this with excel, but I suspect there would be better tools for this, when the the conditions become complicated. I have no experience with databases.
The question is what is the best tool for this, and given that tool point to some basic tutorials to get me started.
Thanks!
I am familiar with python... is there any package to do this kind of thing there or I would have to write on from scratch? – skeept – 2012-02-29T21:32:17.863
You could use the csv module to read the file in. You can then iterate over the rows, convert to a number format and find the max/count it. Are you proficient enough in Python to write that part yourself?
– Bob – 2012-03-01T12:17:27.723It wouldn't be very difficult to read the file in and then split the characters by newline and then by comma...then it's just a matter of looping over each of those values to derive your minimums/maximums. – JakeTheSnake – 2012-03-15T00:28:06.657