I'm quite new to Python so this might be an easy question.
I'm trying to compare peaks in dataframe between columns over multiple regular intervals, the problems is that there is a delay in the peaks between the columns. The most logical solution to me would be to take the mean of the 4th quartile for each column.
My data looks something like this
0 1 2
0 -0.2 0.4 -0.5
1 0.3 0.8 0.4
2 -0.5 0.4 0.7
3 0.4 -0.6 0.5
etc.
I would like to get mean values of the 4th quartile over every 18000 rows. But i'm already stuck before trying to incorporate the intervals, as when i try np.percentile(df,[100]) I only get a single value and I'm not sure if this is the highest value or the mean of the 4th quartile.
The outcome I had in mind would look something like this
1 2 3
0-18000 0.8 0.9 0.8
18001-36000 1.2 0.9 0.9
etc.