Skip to content

Commit 8506e66

Browse files
TomAugspurgerjreback
authored andcommitted
DOC: Bump fastparquet version (#24590)
1 parent 0dd02f1 commit 8506e66

11 files changed

+10
-31
lines changed

ci/deps/azure-macos-35.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ dependencies:
1414
- numpy=1.12.0
1515
- openpyxl=2.5.5
1616
- pyarrow
17-
- fastparquet
1817
- pytables
1918
- python=3.5*
2019
- pytz

ci/deps/azure-windows-36.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
- blosc
77
- bottleneck
88
- boost-cpp<1.67
9-
- fastparquet
9+
- fastparquet>=0.2.1
1010
- matplotlib
1111
- numexpr
1212
- numpy=1.14*
@@ -18,7 +18,6 @@ dependencies:
1818
- python=3.6.6
1919
- pytz
2020
- scipy
21-
- thrift=0.10*
2221
- xlrd
2322
- xlsxwriter
2423
- xlwt

ci/deps/travis-27.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
- beautifulsoup4
77
- bottleneck
88
- cython=0.28.2
9-
- fastparquet
9+
- fastparquet>=0.2.1
1010
- gcsfs
1111
- html5lib
1212
- ipython

ci/deps/travis-36-doc.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
- beautifulsoup4
77
- bottleneck
88
- cython>=0.28.2
9-
- fastparquet
9+
- fastparquet>=0.2.1
1010
- gitpython
1111
- html5lib
1212
- hypothesis>=3.58.0

ci/deps/travis-36.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies:
77
- botocore>=1.11
88
- cython>=0.28.2
99
- dask
10-
- fastparquet
10+
- fastparquet>=0.2.1
1111
- gcsfs
1212
- geopandas
1313
- html5lib

doc/source/install.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ Optional Dependencies
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
260260
* `pyarrow <http://arrow.apache.org/docs/python/>`__ (>= 0.7.0): necessary for feather-based storage.
261-
* `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.1.2) for parquet-based storage. The `snappy <https://pypi.org/project/python-snappy>`__ and `brotli <https://pypi.org/project/brotlipy>`__ are available for compression support.
261+
* `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

264264
* `psycopg2 <http://initd.org/psycopg/>`__: for PostgreSQL

doc/source/whatsnew/v0.24.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ If installed, we now require:
474474
+-----------------+-----------------+----------+
475475
| bottleneck | 1.2.0 | |
476476
+-----------------+-----------------+----------+
477-
| fastparquet | 0.1.2 | |
477+
| fastparquet | 0.2.1 | |
478478
+-----------------+-----------------+----------+
479479
| matplotlib | 2.0.0 | |
480480
+-----------------+-----------------+----------+

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ dependencies:
2929
- botocore>=1.11
3030
- boto3
3131
- bottleneck>=1.2.0
32-
- fastparquet>=0.1.2
32+
- fastparquet>=0.2.1
3333
- html5lib
3434
- ipython>=5.6.0
3535
- ipykernel

pandas/io/parquet.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ def __init__(self):
151151
"\nor via pip\n"
152152
"pip install -U fastparquet"
153153
)
154-
if LooseVersion(fastparquet.__version__) < '0.1.2':
154+
if LooseVersion(fastparquet.__version__) < '0.2.1':
155155
raise ImportError(
156-
"fastparquet >= 0.1.2 is required for parquet "
156+
"fastparquet >= 0.2.1 is required for parquet "
157157
"support\n\n"
158158
"you can install via conda\n"
159159
"conda install fastparquet -c conda-forge\n"

pandas/tests/io/test_parquet.py

-19
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,6 @@ def fp():
5959
return 'fastparquet'
6060

6161

62-
@pytest.fixture
63-
def fp_lt_014():
64-
if not _HAVE_FASTPARQUET:
65-
pytest.skip("fastparquet is not installed")
66-
if LooseVersion(fastparquet.__version__) >= LooseVersion('0.1.4'):
67-
pytest.skip("fastparquet is >= 0.1.4")
68-
return 'fastparquet'
69-
70-
7162
@pytest.fixture
7263
def df_compat():
7364
return pd.DataFrame({'A': [1, 2, 3], 'B': 'foo'})
@@ -510,16 +501,6 @@ def test_categorical(self, fp):
510501
df = pd.DataFrame({'a': pd.Categorical(list('abc'))})
511502
check_round_trip(df, fp)
512503

513-
def test_datetime_tz(self, fp_lt_014):
514-
515-
# fastparquet<0.1.4 doesn't preserve tz
516-
df = pd.DataFrame({'a': pd.date_range('20130101', periods=3,
517-
tz='US/Eastern')})
518-
# warns on the coercion
519-
with catch_warnings(record=True):
520-
check_round_trip(df, fp_lt_014,
521-
expected=df.astype('datetime64[ns]'))
522-
523504
def test_filter_row_groups(self, fp):
524505
d = {'a': list(range(0, 3))}
525506
df = pd.DataFrame(d)

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ blosc
1818
botocore>=1.11
1919
boto3
2020
bottleneck>=1.2.0
21-
fastparquet>=0.1.2
21+
fastparquet>=0.2.1
2222
html5lib
2323
ipython>=5.6.0
2424
ipykernel

0 commit comments

Comments
 (0)