heat map correlation seaborn
import matplotlib.pyplot as plt import seaborn as sns figure = plt.figure(figsize=(12, 6)) sns.heatmap(data.corr(), annot=True,cmap=plt.cm.cool) plt.tight_layout() plt.xlabel('Corr') plt.show()
seaborn correlation heatmap
import pandas as pd import seaborn as sns sns.heatmap(dataframe.corr(), annot=True) # annot is optional