I want this to be in a form where I get Kept %, Broken % and F_P2P% for each amount bucket. Example: Desired Output
due_amount_quantiles Kept % Broken % F_P2P Unique User Id
(-0.001, 767.91] 5 10 85 100
(767.91, 1477.935] 10 20 70 100
Current Output
due_amount_quantiles P2P_Status Unique User Id
0 (-0.001, 767.91] Broken 60823
1 (-0.001, 767.91] F_P2P 1324
2 (-0.001, 767.91] Kept 32458
3 (767.91, 1477.935] Broken 68638
4 (767.91, 1477.935] F_P2P 1477
5 (767.91, 1477.935] Kept 24489
6 (1477.935, 2853.447] Broken 69048
7 (1477.935, 2853.447] F_P2P 2106
8 (1477.935, 2853.447] Kept 23450
9 (2853.447, 25175.06] Broken 63811
How do I achieve this? unstack did not work.