FunctionRacerProblemsRace

Table as Colors

BeginnerseabornPython

df is a table of numbers. Show it as a heatmap with seaborn: one colored cell per number, the column names along the bottom and the row numbers along the side. Draw it on a chart made with fig, ax = plt.subplots() by passing ax=ax, and return the figure.

Checked: the grid of values, the x tick labels and the y tick labels.

Example 1

df {"mon":[1,4],"tue":[2,5],"wed":[3,6]}
draws
The chart to draw in example 1 of Table as Colors

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