Example #1
0
 def test_AVERAGE(self):
     self.assertEqual(statistics.AVERAGE(xl.RangeData([[1, 2], [3, 4]])),
                      2.5)
Example #2
0
 def test_AVERAGE_numbers(self):
     self.assertEqual(statistics.AVERAGE(1, 2.0, 3, 4.0), 2.5)
Example #3
0
 def test_AVERAGE_without_any_numbers(self):
     self.assertEqual(statistics.AVERAGE(), 0)
Example #4
0
 def test_AVERAGE(self):
     self.assertEqual(
         statistics.AVERAGE(xltypes.Array([[1, 2], [3, 4]])), 2.5)