This should be ``array_like``, not ``ndarray``. To achieve that you need the first line of code from ``ks_2samp``. Looks like you got the description from that function, but it's wrong there.