Data Analysis: Medical Data Vis (heatmap value test)

I’m encountering an error in the heat map values test, which relates to the values in the correlation matrix. I checked and there are no missing or null values. I also followed the filtering criteria and can’t seem to find the source of the error in the values.

Traceback (most recent call last):
File “d:\network.py\Medical Data Visualizer\test_module.py”, line 47, in test_heat_map_values
self.assertEqual(actual, expected, “Expected different values in heat map.”)
AssertionError: Lists differ: ['0.0[59 chars], ‘0.2’, ‘0.0’, ‘0.0’, ‘0.0’, ‘0.0’, ‘0.0’, ‘0[548 chars]0.1’] != ['0.0[59 chars], ‘0.3’, ‘0.0’, ‘0.0’, ‘0.0’, ‘0.0’, ‘0.0’, ‘0[548 chars]0.1’]

First differing element 9:
‘0.2’
‘0.3’

Fixed. The problem was in the filtering…

1 Like

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