I'm doing the calculation in periscopedata and I want to transpose some of the tables to the desired output.
i.e)
F.name Date Result
gross_sale 2015/01/01 450
gross_sale 2015/01/02 554
gross_sale 2015/01/03 439
sale_disc 2015/01/01 31
sale_dsic 2015/01/03 22
I want the result look like this
F.name 2015/01/01 2015/01/02 2015/01/03
gross_sale 450 554 439
sale_disc 31 0 22
periscopedata support pandas Dataframes and I've tried below but that throws error.
import pandas as pd
df2 = df.T
periscope.table(df2)
Guide me how to adjust the python code so that I can get the correct result I want.