How Many of Each
df has a column color. Draw a bar chart with one bar per color showing how many rows have that color, with seaborn. Draw it on a chart made with fig, ax = plt.subplots() by passing ax=ax, and return the figure.
Checked: the bars and the x tick labels.
Example 1
df {"color":["red","blue","red","green","red"]}
draws

Constraints
1 <= len(df) <= 60
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More seaborn problems
- Line From a TableBeginner
- Shape of a ColumnBeginner
- Table as ColorsBeginner
- A Line per CityEasy
- Bars by Two KeysEasy
- Colored by GroupEasy
- Every Point in Its LaneEasy
- Long Names SidewaysEasy