Screen Link:
https://app.dataquest.io/m/370/working-with-missing-data/5/visualizing-missing-data-with-plots
Hey DQ community, Please help me understand this lines of code.
I am trying to understand each line written in the function that plots correlation heatmap and I reached far up to the text formatting but I am not getting following lines of code, it is rounding up the values for correlation I guess but not able to follow it all the way.
# format the text in the plot to make it easier to read
for text in ax.texts:
t = float(text.get_text())
if -0.05 < t < 0.01:
text.set_text('')
else:
text.set_text(round(t, 2))
text.set_fontsize('x-large')