1 2 3 4 5 6 7 8
| import matplotlib.pyplot as plt import seaborn as sns
train_corr = data_train1.corr()
ax = plt.subplots(figsize=(20, 16)) cmap = sns.diverging_palette(180, 30, as_cmap=True) ax = sns.heatmap(train_corr, vmax=.8, cmap=cmap,square=True, annot=True)
|