Data Analysis with Python Projects - Medical Data Visualizer

Tell us what’s happening:

Medical Data Visualizer/Python round values .1f/Heatmap values
I have this code:
sns.heatmap(
corr,
mask=mask,
annot=True,
fmt=“.1f”,
cmap=‘coolwarm’,
square=True,
linewidths=0.5
)
I also tried round and Decimal and error still exists.
Main problem that number in array under index [9] rounds to 0.3, test expects 0.2 and real value before round 0.24039044182126129146…
I tried it independently and all works but in context i get 0.3

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36

Challenge Information:

Data Analysis with Python Projects - Medical Data Visualizer

did you tried to round the value before plotting heatmap?