1import seaborn as sns
2df = sns.load_dataset('iris')
3corr_matrix = df.corr()
4corr_matrix.style.background_gradient(cmap='coolwarm')
5# 'RdBu_r', 'BrBG_r', & PuOr_r are other good diverging colormaps
6
1import numpy as np
2import scipy.stats
3x = np.arange(15, 20)
4y = np.arange(5, 10)
5stat, p = scipy.stats.pearsonr(x, y)