You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
API: Use np.random's RandomState when seed is None in .sample
closes#13143
Author: Allen Riddell <[email protected]>
Closes#13161 from ariddell/feature/sample-numpy-random-seed and squashes the following commits:
595b0bc [Allen Riddell] Use np.random's RandomState when seed is None
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.18.2.txt
+2
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,8 @@ API changes
55
55
56
56
- Non-convertible dates in an excel date column will be returned without conversion and the column will be ``object`` dtype, rather than raising an exception (:issue:`10001`)
57
57
- An ``UnsupportedFunctionCall`` error is now raised if numpy ufuncs like ``np.mean`` are called on groupby or resample objects (:issue:`12811`)
58
+
- Calls to ``.sample()`` will respect the random seed set via ``numpy.random.seed(n)`` (:issue:`13161`)
0 commit comments