I have a data frame that has "Value", followed by Decile_Category_1, Decile_Category_2,..., Decile_Category_n.
I want to make n separate df's grouped by their decile and then want to make a graph on each pivot table. What's a quick way to do that other than typing out the group_by n times?
Edit: Example Starting DF:
Value  Dec_Cat_1    Dec_Cat_2   Dec_Cat_3
100    1            3             1      
200    3            3             3
400    1            6             3 
...    ...          ...          ...
Ending DF1
Dec_Cat_1   Value
1           500
2           xxx
3           200
4           xxx
5           xxx          
6           xxx
7           xxx
8           xxx
9           xxx
10          xxx
Ending DF2
Dec_Cat_2   Value
1           xxx
2           xxx
3           300
4           xxx
5           xxx          
6           400
7           xxx
8           xxx
9           xxx
10          xxx
And so on for every column in the original data frame.
 
    