Skip to content
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/main' into ref/dtype_backend
  • Loading branch information
mroeschke committed Dec 21, 2022
commit bc9d9a367a7839b5e1fa3dd1ad0902c37fb8c464
1 change: 1 addition & 0 deletions pandas/io/parsers/readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ def _read(
elif (
kwds.get("use_nullable_dtypes", False)
and get_option("mode.dtype_backend") == "pyarrow"
and kwds.get("engine") == "c"
):
raise NotImplementedError(
f"use_nullable_dtypes=True and engine={kwds['engine']} with "
Expand Down
2 changes: 1 addition & 1 deletion pandas/tests/io/parser/dtypes/test_dtypes_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def test_use_nullable_dtypes_pyarrow_backend(all_parsers, request):
3,4.5,False,b,6,7.5,True,a,12-31-2019,
"""
with pd.option_context("mode.dtype_backend", "pyarrow"):
if parser.engine != "pyarrow":
if engine == "c":
request.node.add_marker(
pytest.mark.xfail(
raises=NotImplementedError,
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.