|
1 | 1 | from __future__ import annotations
|
2 | 2 |
|
3 |
| -import os |
4 |
| -import warnings |
5 |
| - |
6 | 3 | __docformat__ = "restructuredtext"
|
7 | 4 |
|
8 | 5 | # Let users know if they're missing any of our hard dependencies
|
|
193 | 190 | __git_version__ = v.get("full-revisionid")
|
194 | 191 | del get_versions, v
|
195 | 192 |
|
196 |
| -# GH#55043 - deprecation of the data_manager option |
197 |
| -if "PANDAS_DATA_MANAGER" in os.environ: |
198 |
| - warnings.warn( |
199 |
| - "The env variable PANDAS_DATA_MANAGER is set. The data_manager option is " |
200 |
| - "deprecated and will be removed in a future version. Only the BlockManager " |
201 |
| - "will be available. Unset this environment variable to silence this warning.", |
202 |
| - FutureWarning, |
203 |
| - stacklevel=2, |
204 |
| - ) |
205 |
| - |
206 |
| -# DeprecationWarning for missing pyarrow |
207 |
| -from pandas.compat.pyarrow import pa_version_under10p1, pa_not_found |
208 |
| - |
209 |
| -if pa_version_under10p1: |
210 |
| - # pyarrow is either too old or nonexistent, warn |
211 |
| - from pandas.compat._optional import VERSIONS |
212 |
| - |
213 |
| - if pa_not_found: |
214 |
| - pa_msg = "was not found to be installed on your system." |
215 |
| - else: |
216 |
| - pa_msg = ( |
217 |
| - f"was too old on your system - pyarrow {VERSIONS['pyarrow']} " |
218 |
| - "is the current minimum supported version as of this release." |
219 |
| - ) |
220 |
| - |
221 |
| - warnings.warn( |
222 |
| - f""" |
223 |
| -Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0), |
224 |
| -(to allow more performant data types, such as the Arrow string type, and better interoperability with other libraries) |
225 |
| -but {pa_msg} |
226 |
| -If this would cause problems for you, |
227 |
| -please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466 |
228 |
| - """, # noqa: E501 |
229 |
| - DeprecationWarning, |
230 |
| - stacklevel=2, |
231 |
| - ) |
232 |
| - del VERSIONS, pa_msg |
233 |
| - |
234 |
| -# Delete all unnecessary imported modules |
235 |
| -del pa_version_under10p1, pa_not_found, warnings, os |
236 | 193 |
|
237 | 194 | # module level doc-string
|
238 | 195 | __doc__ = """
|
|
0 commit comments