Is there a way to select random rows from a DataFrame in Pandas.
In R, using the car package, there is a useful function some(x, n) which is similar to h
some(x, n)
Actually this will give you repeated indices np.random.random_integers(0, len(df), N) where N is a large number.
np.random.random_integers(0, len(df), N)
N