pandas-dev / pandas

Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more
https://pandas.pydata.org
BSD 3-Clause "New" or "Revised" License
42.59k stars 17.57k forks source link

DOC: document default behaviour of `sample` methods when `random_state = None` #59073

Closed alexmalins closed 1 week ago

alexmalins commented 1 week ago

Docs improvement to make it clear what the DataFrame/Series/GroupBy sample methods do when no argument is supplied for random_state. TLDR it just defers to np.random to draw random samples, so the state is whatever the current random state of np.random is.

mroeschke commented 1 week ago

Thanks @alexmalins