My dataset is called df
:
year | french | flemish |
---|---|---|
2014 | 200 | 200 |
2015 | 170 | 210 |
2016 | 130 | 220 |
2017 | 120 | 225 |
2018 | 210 | 250 |
I want to create a histogram in seaborn with french
and flemish
on the x-axis and year
as the hue.
I tried this, but it didn't work successfully:
sns.histplot(data=df, x="french", hue="year", multiple="dodge", shrink=.8)
The y-axis should show the height of the number of the columns of french
and flemish
.