We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91bd03b commit 1a20d13Copy full SHA for 1a20d13
pandas/tests/series/test_repr.py
@@ -240,6 +240,13 @@ def test_series_repr_nat(self):
240
)
241
assert result == expected
242
243
+ def test_float_repr(self):
244
+ # GH#35603
245
+ # check float format when cast to object
246
+ ser = Series([1.0]).astype(object)
247
+ expected = "0 1.0\ndtype: object"
248
+ assert repr(ser) == expected
249
+
250
251
class TestCategoricalRepr:
252
def test_categorical_repr_unicode(self):
0 commit comments