I'm trying to apply pivot table on a data frame by using
intractionTableClicks = pd.pivot_table(read_sql_preroll_interaction,index = ["PLACEMENT"],values=["VWR_CLICKTHROUGH"],
columns=["CLICK_TAG"],aggfunc=np.sum,fill_value=0)
but the output is coming like
I want this to be like this
I've already tried
intractionTableClicks.reset_index(inplace=True)