I can specify what the rows and columns in my dataset
from pivottablejs import pivot_ui
pivot_ui(prog_df,
rows = ['spot_type'],
cols = ['group', 'daypart', 'station'],
vals = ['tarp'])
but how do I tell it I want the value of the cells to be the sum of the tarp
I can specify what the rows and columns in my dataset from pivottablejs import pivot_ui pivot_ui(prog_df, rows = ['spot_type'], cols = ['group', 'daypart', 'station'], vals = ['tarp'])
but how do I tell it I want the value of the cells to be the sum of the tarp