I have a huge text file similar to the table in below link. Each xxx box has different number of lines but same number of column:
First point in the figure is the average of the first 3 values in the table,
Second is the average of the first 5 values,
Third is the average of first 8 values,
and so on ...
I could not write a general python code which works for whole text file. Could you please help me about that?
I tried this code but I got error: