week and month are both dataframes, filtered from a Master based on based on month and week values like week 18 and "May"
I have run pivot_table function on them, after which I want to rename level 1 column names and then drop the level 0 column names. both the dataframes week and month have gone through same operation
the statement df = df.droplevel(0,axis=1)
does not change the df in anyway, what m I doing wrong
for df in (week, month):
df.columns.set_levels(['a','b','c','d'],level=1,inplace=True)
df = df.droplevel(0,axis=1)