MCPcopy
hub / github.com/pandas-dev/pandas / test_coerce_pyarrow_backend

Function test_coerce_pyarrow_backend

pandas/tests/tools/test_to_numeric.py:898–904  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

896
897
898def test_coerce_pyarrow_backend():
899 # GH 52588
900 pa = pytest.importorskip("pyarrow")
901 ser = Series(list("12x"), dtype=ArrowDtype(pa.string()))
902 result = to_numeric(ser, errors="coerce", dtype_backend="pyarrow")
903 expected = Series([1, 2, None], dtype=ArrowDtype(pa.int64()))
904 tm.assert_series_equal(result, expected)

Callers

nothing calls this directly

Calls 4

SeriesClass · 0.90
ArrowDtypeClass · 0.90
to_numericFunction · 0.90
stringMethod · 0.80

Tested by

no test coverage detected