How to find the percentage of a value basis on the total value of a categorical variable. Below is the code and the output. result.groupby(\'Pred_bucket\')[\'AMOUNT\']
result.groupby(\'Pred_bucket\')[\'AMOUNT\']