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

Function test_all_nan

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

Source from the content-addressed store, hash-verified

223
224
225def test_all_nan():
226 ser = Series(["a", "b", "c"])
227 result = to_numeric(ser, errors="coerce")
228
229 expected = Series([np.nan, np.nan, np.nan])
230 tm.assert_series_equal(result, expected)
231
232
233def test_type_check(errors):

Callers

nothing calls this directly

Calls 2

SeriesClass · 0.90
to_numericFunction · 0.90

Tested by

no test coverage detected