def SpearmanCorr(xs, ys):
 xranks = pandas.Series(xs).rank()
 yranks = pandas.Series(ys).rank()
 return Corr(xranks, yranks)

def SpearmanCorr ( xs , ys ) : xranks = pandas . Series ( xs ) . rank ( ) yranks = pandas . Series ( ys ) . rank ( ) return Corr ( xranks , yranks )
computes spearmans rank correlation .