This is very similar to this question: Finding minimum, maximum and average values for nested lists?
The important difference and root of the question being I would like to find min, max, average within a list (nested within a list) for each unique column name (person's name).
For example: Each line is basically (with similar fictitious names)-
epochtime, name, score, level, extralives
e.g.
1234455, suzy, 120, 3, 0
1234457, billy, 123, 1, 2
1234459, billy, 124, 2, 4
1234459, suzy, 224, 5, 4
1234460, suzy, 301, 7, 1
1234461, billy, 201, 3, 1
And these are placed in a list by time:
if epochtime < 1234500 and epochtime > 1234400:
timechunk1.append(line)
There's a list of lists with each of the time chunks:
listoflists = [timechunk1, timechunk2....]
This may or may not be overkill / extraneous for this question.
How do I find min, max, average values for each field (score, level, extralives) for each unique name (billy or suzy - there are many more than just billy or suzy, so it'd be much better not to list them individually) in each list (timechunk1, timechunk2)?