Pandas move levels of a composite column as a value
Let’s imagine as a starting point I have a dataframe, similar to the one below (using pd.Index
for the composite columns):
Let’s imagine as a starting point I have a dataframe, similar to the one below (using pd.Index
for the composite columns):