I have a time series with 3 sensors, one of them is a proximity switch that tells me revolutions.
Depending at what speed the machine is spinning, the distance in time of the "blips" in this sensor will change, however, regardless of how far apart these blips are, I want to divide all the data that occurred between them in 10 equally sized blocks.
I understand that the exact number of rows might not be divisible by 10 exactly but that's fine.
Timestamp Sensor_1 Sensor_2 Sensor_3
1636496284130 60.875 35.946 0
1636496284132 58.467 33.889 0
1636496284134 58.668 37.253 0
1636496284136 57.966 30.540 0
1636496284138 56.712 33.254 0
I would like to have the resulting DataFrame to have an additional Label column with what interval is taking place.
Timestamp Sensor_1 Sensor_2 Sensor_3 Label
1636496284130 60.875 35.946 0 A
1636496284132 58.467 33.889 0 A
1636496284134 58.668 37.253 0 A
1636496284136 57.966 30.540 0 A
1636496284138 56.712 33.254 0 A
Here's a visual of what I'm trying to achieve.
