Python Spearman -Korrelation
import scipy
# x and y are numpy array with shape (N,)
coeff, _ = scipy.stats.spearmanr(x, y)
wolf-like_hunter
import scipy
# x and y are numpy array with shape (N,)
coeff, _ = scipy.stats.spearmanr(x, y)