FunctionRacerProblemsRace

How Many of Each

BeginnerseabornPython

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
The chart to draw in example 1 of How Many of Each

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More seaborn problems