As shown in below pic i want to make data exactly like this. Sorting data in descending order to show maximum number of sales in pandas
prod_size = pd.DataFrame(dfd.groupby(['ProductID','ColorName','SizeID']).sum()['Sales (Qty)'])
ProductID ColorName SizeID Location Name District Opening QTY Sales (Qty) IN QTY OUT QTY On Hand Qty Transit QTY Total QTY
0 M-KL-0500013 GREY 40 F-7 Shop-Islamabad Islamabad 1.0 NaN NaN NaN 1.0 0.0 1
1 M-KL-0500013 GREY 40 Baghban Pura Shop-Lahore Lahore 1.0 NaN NaN NaN 1.0 0.0 1
2 M-KL-0500013 GREY 40 G-9 Shop-Islamabad Islamabad 2.0 NaN NaN NaN 2.0 0.0 2
3 M-KL-0500013 GREY 40 King Mall Shop-Gujranwala Gujranwala 2.0 NaN NaN NaN 2.0 1.0 3
4 M-KL-0500013 GREY 40 GT Road Shop-Gujranwala Gujranwala 1.0 NaN NaN NaN 1.0 0.0 1
... ... ... ... ... ... ... ... ... ... ... ... ...
1: https://i.stack.imgur.com/sJKoq.pngenter code here