MCPcopy
hub / github.com/pandas-dev/pandas / test_isna

Method test_isna

pandas/tests/series/methods/test_isna.py:27–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25 tm.assert_series_equal(result, ~expected)
26
27 def test_isna(self):
28 ser = Series([0, 5.4, 3, np.nan, -0.001])
29 expected = Series([False, False, False, True, False])
30 tm.assert_series_equal(ser.isna(), expected)
31 tm.assert_series_equal(ser.notna(), ~expected)
32
33 ser = Series(["hi", "", np.nan])
34 expected = Series([False, False, True])
35 tm.assert_series_equal(ser.isna(), expected)
36 tm.assert_series_equal(ser.notna(), ~expected)

Callers

nothing calls this directly

Calls 3

isnaMethod · 0.95
notnaMethod · 0.95
SeriesClass · 0.90

Tested by

no test coverage detected