'how to make a loop for every 20 seconds in timestamp column
I have a dataset that is collected at around 500hz. for each second there are approximately 500 data points. but the frequency is not consistent all time. some times there are only 490 data points each second and sometimes there are 505 data points for each second. Is there a way I can write a loop using the DateTime object that extracts data for that particular period irrespective of change in frequency using python ?
I tried indexing for every 500 rows but this doesnt work.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

