Skip to content

Instantly share code, notes, and snippets.

@AI-MOO
Created February 28, 2022 14:22
Show Gist options
  • Save AI-MOO/e1d7832aa250410e8b6a4b783791b27d to your computer and use it in GitHub Desktop.
Save AI-MOO/e1d7832aa250410e8b6a4b783791b27d to your computer and use it in GitHub Desktop.
# تصوير على هيئة خريطة حرارية لتمثيل العلاقة الترابطية بين الميزات
corr_matrix = df.corr()
fig, ax = plt.subplots(figsize=(15, 15))
ax = sns.heatmap(corr_matrix,
annot=True,
linewidths=0.5,
fmt=".2f",
cmap="YlGnBu");
bottom, top = ax.get_ylim()
ax.set_ylim(bottom + 0.5, top - 0.5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment