Data Analysis with Python Projects: Heatmap section

Double check all your >= and <=.

I did this in 4 separate lines to keep it simple, but most people seem to do it in one line as you have.

The savefig solution is interesting, but I think the tests won’t work with that. You can achieve the same by adding the line

fig = fig.figure

just before the savefig. You can read a little more about this here:

https://forum.freecodecamp.org/t/data-analysis-with-python-projects-medical-data-visualizer/648627/2?u=pkdvalis

I hope this helps!

1 Like