Medical Data Visualizer testing

Tell us what’s happening:
Hi! I get errors while testing my code and I don’t understand why it’s failing. The first two are related to draw_cat_plot. The output image is identical, however, the fig variable returned is not in the right format. Any ideas?

The last error is related to the data in df_heat after cleaning it. I don’t see why that’s not correct. Please help!

Your code so far

code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0

Challenge: Medical Data Visualizer

Link to the challenge:

Edit1:
I’ve added [0] to line 10 in test_module.py: self.ax = self.fig.axes[0][0]. This seems to fix the first issue. Still no clue on the second issue :frowning:

First issue is because sns.catplot doesn’t return fig object.

For the second, consider what happens when required percentiles are filtered out one by one. Are filtered values the same as when all filtering is applied in a single step?

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