From 8ea0077a2251626df0137c544005c39d67d3b7c7 Mon Sep 17 00:00:00 2001 From: James Braza Date: Tue, 6 Feb 2024 14:57:04 -0800 Subject: [PATCH 1/3] Added pyarrow extra --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index a7cb87bbca4b7..a77dc6742371c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -70,6 +70,7 @@ aws = ['s3fs>=2022.11.0'] gcp = ['gcsfs>=2022.11.0', 'pandas-gbq>=0.19.0'] excel = ['odfpy>=1.4.1', 'openpyxl>=3.1.0', 'python-calamine>=0.1.7', 'pyxlsb>=1.0.10', 'xlrd>=2.0.1', 'xlsxwriter>=3.0.5'] parquet = ['pyarrow>=10.0.1'] +pyarrow = ['pyarrow>=10.0.1'] feather = ['pyarrow>=10.0.1'] hdf5 = [# blosc only available on conda (https://github.com/Blosc/python-blosc/issues/297) #'blosc>=1.20.1', From 81b264110c51791741d561a4af36c4c3148cec02 Mon Sep 17 00:00:00 2001 From: James Braza Date: Tue, 6 Feb 2024 15:00:47 -0800 Subject: [PATCH 2/3] Added instructions to the DeprecationWarning --- pandas/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandas/__init__.py b/pandas/__init__.py index 535522253c415..7260b34630997 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -212,6 +212,7 @@ Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0), (to allow more performant data types, such as the Arrow string type, and better interoperability with other libraries) but {pa_msg} +To resolve this warning, please specify the pyarrow extra during installation: pandas[pyarrow] If this would cause problems for you, please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466 """, # noqa: E501 From 9fed1f55915e6574325159a3add44ab5515d347c Mon Sep 17 00:00:00 2001 From: James Braza Date: Tue, 6 Feb 2024 16:08:34 -0800 Subject: [PATCH 3/3] Added installation instructions to expected string in test_pyarrow_missing_warn --- pandas/tests/test_common.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandas/tests/test_common.py b/pandas/tests/test_common.py index 00f6fe5dfe5d9..734abc0c0bf36 100644 --- a/pandas/tests/test_common.py +++ b/pandas/tests/test_common.py @@ -282,6 +282,7 @@ def test_pyarrow_missing_warn(module): Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0), (to allow more performant data types, such as the Arrow string type, and better interoperability with other libraries) but was not found to be installed on your system. +To resolve this warning, please specify the pyarrow extra during installation: pandas[pyarrow] If this would cause problems for you, please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466 """ # noqa: E501