Skip to content

Commit b57ec1a

Browse files
authored
TST: Fix test related to reverting fastparquet nullable support (pandas-dev#42999)
1 parent 1bd88d7 commit b57ec1a

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

pandas/io/parquet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def read(
311311
):
312312
parquet_kwargs: dict[str, Any] = {}
313313
use_nullable_dtypes = kwargs.pop("use_nullable_dtypes", False)
314-
if Version(self.api.__version__) >= Version("0.7.1"):
314+
if Version(self.api.__version__) >= Version("0.7.0"):
315315
# We are disabling nullable dtypes for fastparquet pending discussion
316316
parquet_kwargs["pandas_nulls"] = False
317317
if use_nullable_dtypes:

pandas/tests/io/test_parquet.py

-5
Original file line numberDiff line numberDiff line change
@@ -1079,11 +1079,6 @@ def test_timezone_aware_index(self, fp, timezone_aware_date_list):
10791079
def test_use_nullable_dtypes_not_supported(self, monkeypatch, fp):
10801080
df = pd.DataFrame({"a": [1, 2]})
10811081

1082-
# This is supported now in fastparquet 0.7.1 and above actually
1083-
# Still need to ensure that this raises in all versions below
1084-
import fastparquet as fp
1085-
1086-
monkeypatch.setattr(fp, "__version__", "0.4")
10871082
with tm.ensure_clean() as path:
10881083
df.to_parquet(path)
10891084
with pytest.raises(ValueError, match="not supported for the fastparquet"):

0 commit comments

Comments
 (0)