TA Sector GP OPR
ID
AAPL 0.03 NaN 0.20 0.10
MSFT 0.04 NaN 0.30 0.05
AAPL NaN IT NaN NaN
MSFT NaN IT NaN NaN
I would like to convert the above frame into
Ticker Sector TA GO OPR
AAPL IT 0.03 0.20 0.10
MSFT IT 0.04 0.30 0.05
Is there a straight forward way to accomplish this?
axis=1parameter topd.concat.df.groupby(level=0).first()work?