Data Analysis with Python Projects - Medical Data Visualizer-Heatmap-values

Tell us what’s happening:
Describe your issue in detail here.
Hello, I created my script in jupiter using collab, and tested it over and over but when I run it on replit the heatmap does not show the annot values , even when the test module retrieves those values, the output just shows [‘–’ , ‘–’]. the actual correlation values are working but it is not showing in the heatmap.
Appreciate any help

Your code so far
here is the link to the code

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

Challenge: Data Analysis with Python Projects - Medical Data Visualizer

Link to the challenge:

Still looking into this, but I think all of the code in your heatmap function is ok. If I replace the whole function with my function that works (and is almost exactly the same anyways) I get the same error.

The problem might be before this function starts.

How did you create the replit? Did you import it normally from github as it shows on the project page?

I think there’s something wrong with your replit. I would fork it from the boilerplate again and copy your code back in. Here it is: https://replit.com/@freeCodeCamp/fcc-medical-data-visualizer

I did this and I was able to get it to generate a heatmap with values and get rid of that strange [‘–’ , ‘–’] behaviour.

Thank you for the reply!
I did import it from github at first but with the poetry and other pyproject file that comes with it , does not let me run pandas , the console keeps telling me there is no module called pandas even though replit says they are installed, so I deleted them and reinstalled all the packages

Thank you! I was able to solve the issue and pass the test!

1 Like

Hello!
So, i’m having the same problem, and tried to fork it from the link you provided ( fcc-medical-data-visualizer - Replit)

And after checking to run my code with the forked file, i noticed there’s a difference on the test module file heatmap that caused an error. There’s an extra ‘blank’ element that doesn’t exists if you directly import from the project

This is the result from the fork (fcc-medical-data-visualizer - Replit)

This is from the import directly from the project

Should i just delete these extra elements to fix the error ?

1 Like

Good find! :clap: :metal:

That is very strange. In my own working fork, it doesn’t have those extra ''s, so good idea to go ahead and remove them.

Reported this here: https://forum.freecodecamp.org/t/data-analysis-with-python-projects-medical-data-visualizer-heatmap-values/639407

Thanks! I’ll just delete the extra ''s.

That is strange that not everyone having this issue.
I guess there 's some error during the forking process on my end or issues on my browser ?
I’ve tried to fork it multiple times, and there’s always the extras ''s.