Skip to content

Commit 0886bfb

Browse files
committed
adding examples with series
1 parent 2d7ab83 commit 0886bfb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pandas/tests/series/test_repr.py

+7
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,13 @@ def test_float_repr(self):
258258
expected = "0 1.0\ndtype: object"
259259
assert repr(ser) == expected
260260

261+
def test_different_null_objects(self):
262+
# GH#45263
263+
ser = Series([1, 2, 3, 4], [True, None, np.nan, pd.NaT])
264+
result = repr(ser)
265+
expected = "True 1\nNone 2\nNaN 3\nNaT 4\ndtype: int64"
266+
assert result == expected
267+
261268

262269
class TestCategoricalRepr:
263270
def test_categorical_repr_unicode(self):

0 commit comments

Comments
 (0)