fn to compute crosstable ks tests and return in df