diff --git a/pandas/tests/series/test_repr.py b/pandas/tests/series/test_repr.py index 96a69476ccbef..0d5c3bc21c609 100644 --- a/pandas/tests/series/test_repr.py +++ b/pandas/tests/series/test_repr.py @@ -240,6 +240,13 @@ def test_series_repr_nat(self): ) assert result == expected + def test_float_repr(self): + # GH#35603 + # check float format when cast to object + ser = Series([1.0]).astype(object) + expected = "0 1.0\ndtype: object" + assert repr(ser) == expected + class TestCategoricalRepr: def test_categorical_repr_unicode(self):