From d218361d9624bf2f5dada943eeec8dcc08a68618 Mon Sep 17 00:00:00 2001 From: Grzegorz Bokota Date: Mon, 22 Jan 2024 11:11:02 +0000 Subject: [PATCH 1/2] remove enter on begin of import --- pandas/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandas/__init__.py b/pandas/__init__.py index ed524c2bb3619..f73408bbe1dcb 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -219,8 +219,7 @@ ) warnings.warn( - f""" -Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0), + f"""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} If this would cause problems for you, From f2a75aedcb45e884ffe4642afcebbcf7ea00c797 Mon Sep 17 00:00:00 2001 From: Grzegorz Bokota Date: Mon, 22 Jan 2024 11:45:37 +0000 Subject: [PATCH 2/2] fix tests --- pandas/tests/test_common.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandas/tests/test_common.py b/pandas/tests/test_common.py index 4af71be11fe6b..5e07f05f4d936 100644 --- a/pandas/tests/test_common.py +++ b/pandas/tests/test_common.py @@ -278,8 +278,7 @@ def test_pyarrow_missing_warn(module): capture_output=True, check=True, ) - msg = """ -Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0), + msg = """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. If this would cause problems for you,