I have data captured for a particular duration of time. Please find below snapshot of the table (attached the same):
| TimeStamp | A | B | C |
| 0.001 | 10.005 | 450.4451 | 428.9093 |
| 0.002 | 10.01 | 450.8904 | 429.0295 |
| 0.003 | 10.015 | 451.336 | 429.0177 |
| 0.004 | 10.02 | 451.7818 | 428.9279 |
| 0.005 | 10.025 | 452.2278 | 428.8491 |
The plot of column C looks like below:

I need to filter the rows in section1 , 2 & 3 and find their average.
Each section spans for 30second duration which is calculated from timestamp column and there is a 20 second interval between each section.
The final result table should be as below:
| Section | mean(A) | mean(B) | mean(C) |
| 1 | 10.005 | 450.4451 | 428.9093 |
| 2 | 10.01 | 450.8904 | 429.0295 |
| 3 | 10.015 | 451.336 | 429.0177 |
Could you please advise how can we filter the rows in section1 , 2 & 3 and find their average using script.