Skip to content

Commit 200757a

Browse files
committed
Merge branch 'dtype_backend' into dtype_backend_validation
2 parents 04ca968 + d90989f commit 200757a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

pandas/tests/io/test_parquet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ def test_read_dtype_backend_pyarrow_config_index(self, pa):
10371037
check_round_trip(
10381038
df,
10391039
engine=pa,
1040-
read_kwargs={"dtype_backend": True},
1040+
read_kwargs={"dtype_backend": "pyarrow"},
10411041
expected=expected,
10421042
)
10431043

pandas/tests/tools/test_to_numeric.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ def test_to_numeric_dtype_backend_na(val, dtype):
829829
pytest.importorskip("pyarrow")
830830
dtype_backend = "pyarrow"
831831
else:
832-
dtype_backend = "pandas"
832+
dtype_backend = "numpy_nullable"
833833
ser = Series([val, None], dtype=object)
834834
result = to_numeric(ser, dtype_backend=dtype_backend)
835835
expected = Series([val, pd.NA], dtype=dtype)
@@ -861,7 +861,8 @@ def test_to_numeric_dtype_backend_downcasting(val, dtype, downcast):
861861

862862

863863
@pytest.mark.parametrize(
864-
"smaller, dtype_backend", [["UInt8", "pandas"], ["uint8[pyarrow]", "pyarrow"]]
864+
"smaller, dtype_backend",
865+
[["UInt8", "numpy_nullable"], ["uint8[pyarrow]", "pyarrow"]],
865866
)
866867
def test_to_numeric_dtype_backend_downcasting_uint(smaller, dtype_backend):
867868
# GH#50505

0 commit comments

Comments
 (0)