Advertisement
elena1234

correlation heatmap in Python

Sep 12th, 2023 (edited)
736
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | Source Code | 0 0
  1. corr_matrix = listings_clean.corr(numeric_only = True)
  2. corr_matrix
  3.  
  4. plt.figure(figsize=(12,8))
  5. sns.set(font_scale=1.4)
  6. sns.heatmap(titanic.corr(numeric_only=True), annot= True, cmap = "Reds")
  7. plt.show()
  8.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement