df = pd.DataFrame({'c1':['g1','g1','g1','g2','g2','g2'], 'c2':['x','y','z','x','y','z'], 'v':[72,44,13,53,97,32]})
Is there a way to transform df in a way that v is replaced by the values g1 and g2 from column c1?
This is the output I'm trying to achieve:
c2 g1 g2
0 x 72 53
1 y 44 97
2 z 13 32