Beispiel #1
0
 def test_one_non_missing(self):
     self.assertEqual(qc.missing_mean([None, 7.3]), 7.3)
     self.assertEqual(qc.missing_mean([994.2, None]), 994.2)
Beispiel #2
0
 def test_all_non_missing(self):
     self.assertEqual(qc.missing_mean([6.0, 1.0]), 3.5)
Beispiel #3
0
 def test_all_missing(self):
     self.assertEqual(qc.missing_mean([None, None]), None)