From 6f6f21ad3771d13b419bf9eadbb2c6dc72df9f3b Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Sat, 13 Mar 2021 23:18:41 -0600 Subject: [PATCH 1/4] DEPS: sync fastparquet version --- doc/source/whatsnew/v1.3.0.rst | 2 +- pandas/compat/_optional.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 56a5412d4ecfc..5a801259db79d 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -300,7 +300,7 @@ Optional libraries below the lowest tested version may still work, but are not c +=================+=================+=========+ | beautifulsoup4 | 4.6.0 | | +-----------------+-----------------+---------+ -| fastparquet | 0.3.2 | | +| fastparquet | 0.4.0 | X | +-----------------+-----------------+---------+ | fsspec | 0.7.4 | | +-----------------+-----------------+---------+ diff --git a/pandas/compat/_optional.py b/pandas/compat/_optional.py index eb2b4caddb7a6..a26da75d921ef 100644 --- a/pandas/compat/_optional.py +++ b/pandas/compat/_optional.py @@ -11,7 +11,7 @@ "bs4": "4.6.0", "bottleneck": "1.2.1", "fsspec": "0.7.4", - "fastparquet": "0.3.2", + "fastparquet": "0.4.0", "gcsfs": "0.6.0", "lxml.etree": "4.3.0", "matplotlib": "2.2.3", From 54fbbd054ae81f2b9fbf1e09c499d11dab32407f Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Sun, 14 Mar 2021 12:36:06 -0500 Subject: [PATCH 2/4] update version in test --- pandas/tests/io/test_parquet.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py index 75c0de0a43bb9..3ebfc8cf1c238 100644 --- a/pandas/tests/io/test_parquet.py +++ b/pandas/tests/io/test_parquet.py @@ -916,7 +916,11 @@ def test_filter_row_groups(self, pa): class TestParquetFastParquet(Base): - @td.skip_if_no("fastparquet", min_version="0.3.2") + from pandas.compat._optional import VERSIONS + + fp_min_ver = VERSIONS.get("fastparquet") + + @td.skip_if_no("fastparquet", min_version=fp_min_ver) def test_basic(self, fp, df_full): df = df_full From 462e4049cfb884a2cfa388f4af9eb9b9fba20527 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Sun, 14 Mar 2021 23:00:07 -0500 Subject: [PATCH 3/4] remove min version --- pandas/tests/io/test_parquet.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py index 3ebfc8cf1c238..a35033de9cb97 100644 --- a/pandas/tests/io/test_parquet.py +++ b/pandas/tests/io/test_parquet.py @@ -916,11 +916,7 @@ def test_filter_row_groups(self, pa): class TestParquetFastParquet(Base): - from pandas.compat._optional import VERSIONS - - fp_min_ver = VERSIONS.get("fastparquet") - @td.skip_if_no("fastparquet", min_version=fp_min_ver) def test_basic(self, fp, df_full): df = df_full From 1efe2ce1dfafce673f478304474d73f6ede76c72 Mon Sep 17 00:00:00 2001 From: Fangchen Li Date: Sun, 14 Mar 2021 23:12:55 -0500 Subject: [PATCH 4/4] black --- pandas/tests/io/test_parquet.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py index a35033de9cb97..3ef77d2fbacd0 100644 --- a/pandas/tests/io/test_parquet.py +++ b/pandas/tests/io/test_parquet.py @@ -916,7 +916,6 @@ def test_filter_row_groups(self, pa): class TestParquetFastParquet(Base): - def test_basic(self, fp, df_full): df = df_full