Skip to content

Commit e544b9f

Browse files
authored
CLN: Drop Numpy 1.22 per NEP29 (#56838)
1 parent 0b1f141 commit e544b9f

File tree

6 files changed

+5
-9
lines changed

6 files changed

+5
-9
lines changed

ci/deps/actions-39-minimum_versions.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies:
2222

2323
# required dependencies
2424
- python-dateutil=2.8.2
25-
- numpy=1.22.4
25+
- numpy=1.23.5
2626
- pytz=2020.1
2727

2828
# optional dependencies

doc/source/getting_started/install.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ pandas requires the following dependencies.
203203
================================================================ ==========================
204204
Package Minimum supported version
205205
================================================================ ==========================
206-
`NumPy <https://numpy.org>`__ 1.22.4
206+
`NumPy <https://numpy.org>`__ 1.23.5
207207
`python-dateutil <https://dateutil.readthedocs.io/en/stable/>`__ 2.8.2
208208
`pytz <https://pypi.org/project/pytz/>`__ 2020.1
209209
`tzdata <https://pypi.org/project/tzdata/>`__ 2022.7

doc/source/whatsnew/v2.3.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ If installed, we now require:
6565
+-----------------+-----------------+----------+---------+
6666
| Package | Minimum Version | Required | Changed |
6767
+=================+=================+==========+=========+
68-
| | | X | X |
68+
| numpy | 1.23.5 | X | X |
6969
+-----------------+-----------------+----------+---------+
7070

7171
For `optional libraries <https://pandas.pydata.org/docs/getting_started/install.html>`_ the general recommendation is to use the latest version.

pandas/compat/numpy/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,12 @@
88
# numpy versioning
99
_np_version = np.__version__
1010
_nlv = Version(_np_version)
11-
np_version_lt1p23 = _nlv < Version("1.23")
1211
np_version_gte1p24 = _nlv >= Version("1.24")
1312
np_version_gte1p24p3 = _nlv >= Version("1.24.3")
1413
np_version_gte1p25 = _nlv >= Version("1.25")
1514
np_version_gt2 = _nlv >= Version("2.0.0.dev0")
1615
is_numpy_dev = _nlv.dev is not None
17-
_min_numpy_ver = "1.22.4"
16+
_min_numpy_ver = "1.23.5"
1817

1918

2019
if _nlv < Version(_min_numpy_ver):

pandas/tests/interchange/test_impl.py

-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
is_ci_environment,
99
is_platform_windows,
1010
)
11-
from pandas.compat.numpy import np_version_lt1p23
1211

1312
import pandas as pd
1413
import pandas._testing as tm
@@ -260,7 +259,6 @@ def test_datetime():
260259
tm.assert_frame_equal(df, from_dataframe(df.__dataframe__()))
261260

262261

263-
@pytest.mark.skipif(np_version_lt1p23, reason="Numpy > 1.23 required")
264262
def test_categorical_to_numpy_dlpack():
265263
# https://github.com/pandas-dev/pandas/issues/48393
266264
df = pd.DataFrame({"A": pd.Categorical(["a", "b", "a"])})

pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ authors = [
3030
license = {file = 'LICENSE'}
3131
requires-python = '>=3.9'
3232
dependencies = [
33-
"numpy>=1.22.4; python_version<'3.11'",
34-
"numpy>=1.23.2; python_version=='3.11'",
33+
"numpy>=1.23.5; python_version<'3.12'",
3534
"numpy>=1.26.0; python_version>='3.12'",
3635
"python-dateutil>=2.8.2",
3736
"pytz>=2020.1",

0 commit comments

Comments
 (0)