Hi Folks, I need to take first and last value from each group(where the counter value is 1 consecutively )
My Input :-
TIMESTAMP,COUNTER
2019-03-19:13:50,0
2019-03-19:14:00,0
2019-03-19:14:10,0
2019-03-19:14:20,0
2019-03-19:14:30,0
2019-03-19:14:40,1
2019-03-19:14:50,1
2019-03-19:15:00,1
2019-03-19:15:10,0
2019-03-19:15:20,0
2019-03-19:15:30,0
2019-03-19:15:40,1
2019-03-19:15:50,1
2019-03-19:16:00,1
Desired Output :-
2019-03-19:14:40,2019-03-19:15:00
2019-03-19:15:40,2019-03-19:16:00