new in pandas and I was able to create a dataframe from a csv file. I was also able to sort it out.
What I am struggling now is the following: I give an image as an example from a pandas data frame.
First column is the index, Second column is a group number Third column is what happened.
I want based on the second column to take out the third column on the same unique data frame.
I highlight few examples: For the number 9 return back the sequence [60,61,70,51]
For the number 6 get back the sequence [65,55,56]
For the number 8 get back the single element 8.
How groupby can be used to do this extraction?
Thanks a lot Regards Alex