Now I have a dataframe like below (original dataframe): original dataframe
And I want to transform the dataframe like below (transformed dataframe): transformed dataf