I have a pandas data frame in the following format:
Arrival Departure Park Station Count
8 10 5 [1,2] 1
5 12 6 [3,4] 1
8 10 5 [1,2] 1
I want to groupby this data frame by arrival, departure, park and station but since station is a list, I am getting an error. The output should look like:
Arrival Departure Park Station Count
8 10 5 [1,2] 2
5 12 6 [3,4] 1
Could you please let me know if there is any way to solve this issue?