Skip to content

Commit f47d197

Browse files
gfyoungPingviinituutti
authored andcommitted
DEPS: Bump pyarrow min version to 0.9.0 (pandas-dev#24854)
Closes pandas-devgh-24767
1 parent 1b4279b commit f47d197

File tree

8 files changed

+12
-21
lines changed

8 files changed

+12
-21
lines changed

ci/deps/travis-27.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ dependencies:
2222
- patsy
2323
- psycopg2
2424
- py
25-
- pyarrow=0.7.0
25+
- pyarrow=0.9.0
2626
- PyCrypto
2727
- pymysql=0.6.3
2828
- pytables

doc/source/install.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ Optional Dependencies
257257
* `SciPy <http://www.scipy.org>`__: miscellaneous statistical functions, Version 0.18.1 or higher
258258
* `xarray <http://xarray.pydata.org>`__: pandas like handling for > 2 dims, needed for converting Panels to xarray objects. Version 0.7.0 or higher is recommended.
259259
* `PyTables <http://www.pytables.org>`__: necessary for HDF5-based storage, Version 3.4.2 or higher
260-
* `pyarrow <http://arrow.apache.org/docs/python/>`__ (>= 0.7.0): necessary for feather-based storage.
260+
* `pyarrow <http://arrow.apache.org/docs/python/>`__ (>= 0.9.0): necessary for feather-based storage.
261261
* `Apache Parquet <https://parquet.apache.org/>`__, either `pyarrow <http://arrow.apache.org/docs/python/>`__ (>= 0.7.0) or `fastparquet <https://fastparquet.readthedocs.io/en/latest>`__ (>= 0.2.1) for parquet-based storage. The `snappy <https://pypi.org/project/python-snappy>`__ and `brotli <https://pypi.org/project/brotlipy>`__ are available for compression support.
262262
* `SQLAlchemy <http://www.sqlalchemy.org>`__: for SQL database support. Version 0.8.1 or higher recommended. Besides SQLAlchemy, you also need a database specific driver. You can find an overview of supported drivers for each SQL dialect in the `SQLAlchemy docs <http://docs.sqlalchemy.org/en/latest/dialects/index.html>`__. Some common drivers are:
263263

doc/source/whatsnew/v0.24.0.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ Pandas 0.24.0 includes a number of API breaking changes.
438438
Dependencies have increased minimum versions
439439
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
440440

441-
We have updated our minimum supported versions of dependencies (:issue:`21242`, :issue:`18742`, :issue:`23774`).
441+
We have updated our minimum supported versions of dependencies (:issue:`21242`, :issue:`18742`, :issue:`23774`, :issue:`24767`).
442442
If installed, we now require:
443443

444444
+-----------------+-----------------+----------+
@@ -456,7 +456,7 @@ If installed, we now require:
456456
+-----------------+-----------------+----------+
457457
| pandas-gbq | 0.8.0 | |
458458
+-----------------+-----------------+----------+
459-
| pyarrow | 0.7.0 | |
459+
| pyarrow | 0.9.0 | |
460460
+-----------------+-----------------+----------+
461461
| pytables | 3.4.2 | |
462462
+-----------------+-----------------+----------+

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies:
3939
- nbsphinx
4040
- numexpr>=2.6.8
4141
- openpyxl
42-
- pyarrow>=0.7.0
42+
- pyarrow>=0.9.0
4343
- pytables>=3.4.2
4444
- pytest-cov
4545
- pytest-xdist

pandas/io/feather_format.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ def _try_import():
2424
"or via pip\n"
2525
"pip install -U pyarrow\n")
2626

27-
if LooseVersion(pyarrow.__version__) < LooseVersion('0.4.1'):
28-
raise ImportError("pyarrow >= 0.4.1 required for feather support\n\n"
27+
if LooseVersion(pyarrow.__version__) < LooseVersion('0.9.0'):
28+
raise ImportError("pyarrow >= 0.9.0 required for feather support\n\n"
2929
"you can install via conda\n"
3030
"conda install pyarrow -c conda-forge"
3131
"or via pip\n"

pandas/io/parquet.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ def __init__(self):
8989
"\nor via pip\n"
9090
"pip install -U pyarrow\n"
9191
)
92-
if LooseVersion(pyarrow.__version__) < '0.7.0':
92+
if LooseVersion(pyarrow.__version__) < '0.9.0':
9393
raise ImportError(
94-
"pyarrow >= 0.7.0 is required for parquet support\n\n"
94+
"pyarrow >= 0.9.0 is required for parquet support\n\n"
9595
"you can install via conda\n"
9696
"conda install pyarrow -c conda-forge\n"
9797
"\nor via pip\n"

pandas/tests/io/test_parquet.py

+2-11
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ def engine(request):
4747
def pa():
4848
if not _HAVE_PYARROW:
4949
pytest.skip("pyarrow is not installed")
50-
if LooseVersion(pyarrow.__version__) < LooseVersion('0.7.0'):
51-
pytest.skip("pyarrow is < 0.7.0")
5250
return 'pyarrow'
5351

5452

@@ -289,11 +287,6 @@ def test_read_columns(self, engine):
289287
def test_write_index(self, engine):
290288
check_names = engine != 'fastparquet'
291289

292-
if engine == 'pyarrow':
293-
import pyarrow
294-
if LooseVersion(pyarrow.__version__) < LooseVersion('0.7.0'):
295-
pytest.skip("pyarrow is < 0.7.0")
296-
297290
df = pd.DataFrame({'A': [1, 2, 3]})
298291
check_round_trip(df, engine)
299292

@@ -386,10 +379,8 @@ def test_basic(self, pa, df_full):
386379
df = df_full
387380

388381
# additional supported types for pyarrow
389-
import pyarrow
390-
if LooseVersion(pyarrow.__version__) >= LooseVersion('0.7.0'):
391-
df['datetime_tz'] = pd.date_range('20130101', periods=3,
392-
tz='Europe/Brussels')
382+
df['datetime_tz'] = pd.date_range('20130101', periods=3,
383+
tz='Europe/Brussels')
393384
df['bool_with_none'] = [True, None, True]
394385

395386
check_round_trip(df, pa)

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ matplotlib>=2.0.0
2828
nbsphinx
2929
numexpr>=2.6.8
3030
openpyxl
31-
pyarrow>=0.7.0
31+
pyarrow>=0.9.0
3232
tables>=3.4.2
3333
pytest-cov
3434
pytest-xdist

0 commit comments

Comments
 (0)