Medical Data Visualizer Traceback error

Hello all,

I am trying to find out what I did wrong here. It kept telling me that I have AttributeError: ‘NoneType’ object has no attribute ‘axes’. I have even tried to print fig.axes. It does exist. I am not sure why the error kept telling me that my fig is still a nonetype object.

Here is the link to my code:https://replit.com/@SherrySong1/boilerplate-medical-data-visualizer#medical_data_visualizer.py .
Thank you in advance for help,
Sherry

Looks like draw_heat_map had changed what is returned by function. It certainly shouldn’t be return None.

1 Like

Thank you for your help. I changed it at the very beginning to test my first plot and I forgot to change it back.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.