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, 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,