Skip to content

Commit 29d8ce5

Browse files
authored
Numpy compat (#34321)
1 parent e06e381 commit 29d8ce5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/common.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
from pandas._libs import lib, tslibs
1616
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
1818

1919
from pandas.core.dtypes.cast import construct_1d_object_array_from_listlike
2020
from pandas.core.dtypes.common import (
@@ -396,7 +396,7 @@ def random_state(state=None):
396396
397397
..versionchanged:: 1.1.0
398398
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
400400
np.random.RandomState() as seed
401401
402402
Default None.
@@ -409,7 +409,7 @@ def random_state(state=None):
409409
if (
410410
is_integer(state)
411411
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))
413413
):
414414
return np.random.RandomState(state)
415415
elif isinstance(state, np.random.RandomState):

0 commit comments

Comments
 (0)