Skip to content

Commit a30d0ba

Browse files
Add OP test
1 parent 54297ed commit a30d0ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pandas/tests/tools/test_to_numeric.py

+4
Original file line numberDiff line numberDiff line change
@@ -633,3 +633,7 @@ def test_failure_to_convert_uint64_string_to_NaN():
633633
# GH 32394
634634
result = to_numeric("uint64", errors="coerce")
635635
assert np.isnan(result)
636+
637+
ser = Series([32, 64, np.nan])
638+
result = to_numeric(pd.Series(["32", "64", "uint64"]), errors="coerce")
639+
tm.assert_series_equal(result, ser)

0 commit comments

Comments
 (0)