I have a pretty complicated Dataframe like this
da = [['tom',"Mar '20" ,10,1,10,67], ['nick',"Apr '20", 15,7687,665,988], \
['juli',"Jun '20", 14,90,73,23]\
,['juli',"Jul '20", 14,990,273,623]]
df = pd.DataFrame(da, columns = ['var', 'date','x','y','z','a'])
I have tried melt function but as i have duplicate values in "var" I am not able to use it What I want is transpose with "var" but with no duplicated columns and keeping date as it is
This is expected Output
