FunctionRacerProblemsRace

How the Columns Move Together

MediumseabornPython

df holds a few numeric columns. Compute the correlation of every column with every other and show the table as a seaborn heatmap whose colors run from -1 to 1 (vmin=-1, vmax=1), with each correlation written in its cell with 2 decimals. Draw on an ax you create and return the figure.

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

Example 1

df {"a":[1,2,3,4,5],"b":[2,4,6,8,10],"c":[5,3,4,1,2]}
draws
The chart to draw in example 1 of How the Columns Move Together

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