$ git clone https://github.com/pylogeny/statistics
$ pip install -e statistics
Note that we use permutation tests to test for significance. As a result, the p-values can differ slightly, especially if you set iterations to less than 1000.
>>> from pylostatistics.correlations import spearmanr
>>> spearman_correlation([1, 2, 3, 4], [1, 2, 3, 4], iterate=1000)
(0.8, 0.089)