python correlation significance code example
Example: python pearson correlation
import scipy
# x and y are numpy array with shape (N,)
coeff, _ = scipy.stats.pearsonr(x, y)
import scipy
# x and y are numpy array with shape (N,)
coeff, _ = scipy.stats.pearsonr(x, y)