Last answered:

25 Mar 2022

Posted on:

24 Mar 2022

0

Resolved: Correlation heatmap error

I got an error as below when I ran your code to perform the correlation heatmap. Please support to check.

AttributeError: 'AxesSubplot' object has no attribute 'set_yticklables'

image.png

1 answers ( 1 marked as helpful)
Instructor
Posted on:

25 Mar 2022

0

Hi Ngan,
thanks for reaching out! You have a typo in set_yticklabels the "e" should come before c "l" in labels. Please make sure to change in for both the x and y axis, and this should resolve the error. If there's still an issue, do not hesitate to reach out to me.

Best,
365 Eli

Submit an answer