File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 14
14
15
15
from pandas ._libs import lib , tslibs
16
16
from pandas ._typing import AnyArrayLike , Scalar , T
17
- from pandas .compat .numpy import _np_version_under1p17
17
+ from pandas .compat .numpy import _np_version_under1p18
18
18
19
19
from pandas .core .dtypes .cast import construct_1d_object_array_from_listlike
20
20
from pandas .core .dtypes .common import (
@@ -396,7 +396,7 @@ def random_state(state=None):
396
396
397
397
..versionchanged:: 1.1.0
398
398
399
- array-like and BitGenerator (for NumPy>=1.17 ) object now passed to
399
+ array-like and BitGenerator (for NumPy>=1.18 ) object now passed to
400
400
np.random.RandomState() as seed
401
401
402
402
Default None.
@@ -409,7 +409,7 @@ def random_state(state=None):
409
409
if (
410
410
is_integer (state )
411
411
or is_array_like (state )
412
- or (not _np_version_under1p17 and isinstance (state , np .random .BitGenerator ))
412
+ or (not _np_version_under1p18 and isinstance (state , np .random .BitGenerator ))
413
413
):
414
414
return np .random .RandomState (state )
415
415
elif isinstance (state , np .random .RandomState ):
You can’t perform that action at this time.
0 commit comments