Series.sample(n=None, frac=None, replace=False, random_state=None)

Random sample of items

nint, optional

Number of items to return is not supported by dask. Use frac instead.

fracfloat, optional

Fraction of axis items to return.

replaceboolean, optional

Sample with or without replacement. Default = False.

random_stateint or np.random.RandomState

If int we create a new RandomState with this as the seed Otherwise we draw from the passed RandomState