def test_series_all_b(self): s1 = Series([True, True, np.nan, True], index=('a', 'b', 'c', 'd'), dtype=object) self.assertEqual(s1.all(skipna=False), True) self.assertEqual(s1.all(skipna=True), False) self.assertEqual(s1.any(), True)
def test_series_all_a(self): s1 = Series(range(4), index=('a', 'b', 'c', 'd')) self.assertEqual(s1.all(), False) self.assertEqual(s1.any(), True)