I have car positions (X,Y) at differents dates :
input =[
[21/01/2017,"carA",2053005.39445,701577.391706],
[22/01/2017,"carA",2053005.39445,701577.391706],
[23/01/2017,"carA",2053005.39445,701577.391706],
[24/01/2017,"carA",2052759.49583,701843.214278],
[25/01/2017,"carA",2052759.49583,701843.214278]
]
The first three lines have the same positions and the last two lines have the same position too. I would like store the start date and the end date in a new list like this:
output=[
[21/01/2017,23/01/2017,"carA",2053005.39445,701577.391706],
[24/01/2017,25/01/2017,"carA",2052759.49583,701843.214278]
]