I have a dataframe-
df=pd.DataFrame({'city':['a','a','a','b','b','b'],'V':[1,2,3,1,2,3],'O':[33,44,55,66,77,88]})
Now I wanted to create a new dataframe which has unique elements of column V along with the corresponding values from the 'O' column. Output-
   city   1   2   3
0   a    33  44  55
1   b    66  77  88
 
    