What I need seems kind of basic, but I\'m struggling with it, so I would appreciate your help. I have a dataframe shown as below:
data = pd.DataFrame({\'id\' : [\