0

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 likeenter image description here I want this to be like this enter image description here I've already tried intractionTableClicks.reset_index(inplace=True)

abhilash mishra
  • 235
  • 2
  • 3
  • 11

0 Answers0