i got this pivot table result
my pivot table code looks like this:
result = pd.pivot_table(excel, values=["Percent"], columns='Date', index='items', aggfunc={"Percent":np.mean})
but i need to looks like this:
Anyone knows how i can get it?
i tried:
result.reset_index(level=0, drop=True)
but drops the wrong column