How to change column index in pivot_table

I have the code as below :
pivot = pd.pivot_table(df, values=“vco_freq_mhz”, index=[‘Corner’,‘VT’],columns=[‘Instance’,‘fcx’], aggfunc={‘vco_freq_mhz’: [min,max,np.mean,np.std]} )
st.dataframe(pivot)

And have the output as below :

But I expect the result as :

Is there anyway that I can change the pivot as I expect?
Thanks a lot for your help.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.