From 080345884ad5b72642dbe1bbcd4cb18b2b5506d9 Mon Sep 17 00:00:00 2001 From: Thomas Li <47963215+lithomas1@users.noreply.github.com> Date: Wed, 1 Sep 2021 12:36:43 -0700 Subject: [PATCH] Backport PR #43145: REGR: Fix fastparquet 0.7.0 not being able to read a parquet file --- doc/source/whatsnew/v1.3.3.rst | 2 +- pandas/io/parquet.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/whatsnew/v1.3.3.rst b/doc/source/whatsnew/v1.3.3.rst index 7c1a414c1f37d..bcfdcf6fd4b75 100644 --- a/doc/source/whatsnew/v1.3.3.rst +++ b/doc/source/whatsnew/v1.3.3.rst @@ -18,7 +18,7 @@ Fixed regressions - Performance regression in :meth:`core.window.ewm.ExponentialMovingWindow.mean` (:issue:`42333`) - Fixed regression in :meth:`.GroupBy.agg` incorrectly raising in some cases (:issue:`42390`) - Fixed regression in :meth:`RangeIndex.where` and :meth:`RangeIndex.putmask` raising ``AssertionError`` when result did not represent a :class:`RangeIndex` (:issue:`43240`) - +- Fixed regression in :meth:`read_parquet` where the ``fastparquet`` engine would not work properly with fastparquet 0.7.0 (:issue:`43075`) .. --------------------------------------------------------------------------- .. _whatsnew_133.performance: diff --git a/pandas/io/parquet.py b/pandas/io/parquet.py index 5671cce1b966d..49384cfb2e554 100644 --- a/pandas/io/parquet.py +++ b/pandas/io/parquet.py @@ -311,7 +311,7 @@ def read( ): parquet_kwargs: dict[str, Any] = {} use_nullable_dtypes = kwargs.pop("use_nullable_dtypes", False) - if Version(self.api.__version__) >= Version("0.7.0"): + if Version(self.api.__version__) >= Version("0.7.1"): # We are disabling nullable dtypes for fastparquet pending discussion parquet_kwargs["pandas_nulls"] = False if use_nullable_dtypes: