Pivottable.js Pivot_UI how to Sort in Python

104 Views Asked by At

how to sort sum values in ascending or descending order using pivottabke.js, please give python example code thanks

                                    pivot_ui(struct_mto[[structConfig['MR Category'].iloc[0],structConfig['TotalUSD'].iloc[0],structConfig['Qty'].iloc[0],structConfig['WeightKg'].iloc[0],'MTO Revision']], rows=[structConfig['MR Category'].iloc[0]],rowOrder=["value_z_to_a"],cols=['MTO Revision'],outfile_path=chartFile,aggregatorName=["Sum","Decending"],vals=[structConfig['TotalUSD'].iloc[0]],rendererName="Horizontal Stacked Bar Chart")
0

There are 0 best solutions below