I am restructuring the data frame. The sample data frame is as follow:
df = pd.DataFrame()
df ['Stats'] = ['Def duels', 'Def duels Won','Back passes', 'Back passes[Acc]','Dribbles', 'Dribbles[Suc]']
df ['Value'] = [5,2.5,60,55,5,2]
I want to create a new column which only contains the string such as 'Won','Acc' and 'Suc'. The expected data frame is as follow:
What can I try to resolve this?
