I'm trying to perform a two-sample KS Test in Python 3 to detect any significant difference between distributions. For the sake of convenience, letting a and b a data column of .csv I'd like to compare, I simply ran the following "code":
from scipy.stats import ks_2samp
ks_2samp(a, b)
The returning values contained the greatest distance (statistics) and the p-value (pvalue):
Ks_2sampResult(statistic=0.0329418537762845, pvalue=0.000127997328482532)
What I would like to know is, since ks_2samp only treats the two-sided two-sample KS Test, is there a way to perform a one-sided two-sample KS Test in Python?
In addition, how can I find out the position of where the greatest distance occurs? (The x-axis value).