I would like to Unpivot/unstack my dataframe. My df is like:
a=pd.DataFrame(columns=['Name','Title','Status'],data=[['John','Course1','Finished'],['Mike','Course2','Accepted'],['Jim','Course1','Accepted'],['Jhonny','Course3','Rejected'],['Jhonny','Course3','Accepted']])
And I need it to be like:
I have tried with pd.melt and pd.unstack() but not with the desired results. Can you give me a hand? Thanks