I have a df that looks like this.
Education Food_expenditures Mitigative_expenditures Household_expenditures
0 Primary (incomplete) 0.549451 6.923077 2.527473
1 Illiterate 5.000000 5.000000 0.000000
2 Primary (completed) 2.868217 4.883721 2.248062
4 Illiterate 5.593220 3.559322 0.847458
5 Primary (incomplete) 3.333333 5.555556 1.111111
I would like to have a horizontal bar plot that is grouped by the expenditures and then by education. Something that looks like this (only this example is just grouped by two levels for the second part).
I also want to invert it, so group first for Education and then for expenditures. But I'm sure I can figure that out based on the first one. I just couldn't find a good example.