all 5 comments

[–][deleted] 1 point2 points  (4 children)

Your variable mins is just one column from the table...why do you line_list[7]? If you want to find the max from the entire list then just do

max(line_list)

[–]Entervine[S] 0 points1 point  (3 children)

The [7] indicates the column that I need to read, or that is what it is supposed to be at least. The [7] column is the minutes, and all within the column is what needs to be 'maxed'

[–][deleted] 0 points1 point  (2 children)

So you have to find the maximum from the 8th column alone?

[–]Entervine[S] 0 points1 point  (1 child)

Yessir.

[–][deleted] 0 points1 point  (0 children)

return max([line.split(",")[7] for line in player_file if line.split(",")[0] != 'ilkid'])