df
Brand | SPID | Amount  
-------------------    
abc  |  1  |  100
-------------------
bcd  |  2  |  350
-------------------
abc  |  2  |  50
------------------   
bcd  |  1  |  70
------------------
expected output
Brand  |  1  |  2  |  Total
---------------------------
abc  |  100  |  50  |  150
---------------------------
bcd  |  70  |  350  |  420
---------------------------
total|  170  | 400  |  570
---------------------------
I want to use pandas for this kind of output from a big dataframe. it is my very first time to post a question and I don't even know how to create a table for it but hoping you will get it. Thank you
 
    