0

enter image description here

I have the dataframe on top and I want to combine the values of the same date to end up with a dataframe on the bottom. Specifically, parsing the dates, if we have the same date I want to create a set of EVENT_TYPE strings and aggregate their durations for that specific day.

The goal is to create an encoding to the EVENT_TYPE occurring each specific day. I have tried groupby(), and sum(), and also to create a new dataframe and feed it with the merged rows but I fail in comparing succesfully the EVENT_TYPE so as to create the set. Could you please help me ?

0 Answers0