My current dataframe looks like this:
a b c d e
in_1 | in_2 |
--------|-----------------------------------
car | bmw 2 4 5 34 46
| merc 23 4 55 64 21
| range 453 32 2 56 21
| lambo 4 6 2 5 12
| ferrari 12 46 34 23 642
fastfood| burger 123 34 213 23 234
| kfc 123 34 235 123 24
| tacoBell 213 432 124 12 1
I am trying to plot a subplot for each 'in_1' in which the x-axis is the column names (a, b, c, d, e), while the y-axis is the counts (the numbers in the cells).
So the first subplot would have the title "car". The x-axis would have 'a','b', 'c', 'd', 'e'. The y-axis will have the counts for each of 'bmw', 'merc', 'range', 'lambo', 'ferrari'.
The subplots can be bar or line plots and the values of in_2 can be represented in the form of a legend.
