I am trying to use subplots in matplotlib.
I have a dataframe that looks like this:
| FY_YYYY_Q | Gender | Head Count | |
|---|---|---|---|
| 0 | 2017 Q4 | Female | 220 |
| 1 | 2017 Q4 | Male | 200 |
and I need to pass it to the plots parameter as a dictionary:
{'2017 Q4': {'Values': 220, 200}, {'Labels': Female, Male}}
Quite new to Python, so I don't know how to do this. Any help would be appreciated. Thanks in advance!