I have a time series in pandas that looks like this:
2012-01-01 00:00:00.250000 12 2012-01-01 00:00:00.257000 34 2012-01-01 00:00:00.258000 45 2012-01-01 00:00:01.350000 56 2012-01-01 00:00:02.300000 78 2012-01-01 00:00:03.200000 89 2012-01-01 00:00:03.500000 90 2012-01-01 00:00:04.200000 12
Is there a way to lower it to 1 second of data without aligning to 1 second boundaries? For example, is there a way to get this data (assuming downsampling when using the last value that occurs before or during the sampling):
2012-01-01 00:00:00.250000 12 2012-01-01 00:00:01.250000 45 2012-01-01 00:00:02.250000 56 2012-01-01 00:00:03.250000 89 2012-01-01 00:00:04.250000 12
2012-01-01 00:00:00.250000 12 2012-01-01 00:00:01.250000 45 2012-01-01 00:00:02.250000 56 2012-01-01 00:00:03.250000 89 2012-01-01 00:00:04.250000 12
source share