We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de7ce92 commit 75abc6bCopy full SHA for 75abc6b
pandas/tests/tools/test_to_numeric.py
@@ -799,3 +799,11 @@ def test_to_numeric_scientific_notation():
799
result = to_numeric("1.7e+308")
800
expected = np.float64(1.7e308)
801
assert result == expected
802
+
803
804
+@pytest.mark.parametrize("val", [9876543210.0, 2.0**128])
805
+def test_to_numeric_large_float_not_downcast_to_float_32(val):
806
+ # GH 19729
807
+ expected = Series([val])
808
+ result = to_numeric(expected, downcast="float")
809
+ tm.assert_series_equal(result, expected)
0 commit comments