I have a df which looks like this when exported to excel. Where columns A and B a index columns. excel output of df
How to transform into this format? wanted output
CodePudding user response:
df = df.unstack(level=-1)
I have a df which looks like this when exported to excel. Where columns A and B a index columns. excel output of df
How to transform into this format? wanted output
CodePudding user response:
df = df.unstack(level=-1)