Help regarding pivoting tables for multi index dataframes

I need to pivot table for multi-index dataframes. I am unable to figure out the solution, having checked in stack overflow.
Someone please help.

Can you show the snippet along with the df that you applied?
Have you tried pd.pivot_table()?

Thanks for the suggestion. I happened to apply pd.pivot() instead of pd.pivot_table(). It works fine.