Here's my DataFrame:
DATE_TIME
1997-02-25 12:50:00 3238.0
1997-02-25 12:55:00 3237.5
1997-02-25 13:00:00 3237.5
1997-02-25 13:05:00 3237.5
1997-02-25 13:10:00 3239.0
1997-02-25 13:15:00 3242.0
I'm trying to find a way to find the max for every 2 intervals back and still keep in the DataFrame format.
So I would like it to look like this.
DATE_TIME
1997-02-25 12:50:00 3238.0
1997-02-25 12:55:00 3238.0
1997-02-25 13:00:00 3238.0
1997-02-25 13:05:00 3237.5
1997-02-25 13:10:00 3239.0
1997-02-25 13:15:00 3242.0
I've tried a variety of different things. Any help would be greatly appreciated.