MCPcopy Create free account
hub / github.com/apache/arrow / test_variance

Function test_variance

python/pyarrow/tests/test_compute.py:531–535  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

529
530
531def test_variance():
532 data = [1, 2, 3, 4, 5, 6, 7, 8]
533 assert pc.variance(data).as_py() == 5.25
534 assert pc.variance(data, ddof=0).as_py() == 5.25
535 assert pc.variance(data, ddof=1).as_py() == 6.0
536
537
538def test_skew():

Callers

nothing calls this directly

Calls 2

as_pyMethod · 0.80
varianceMethod · 0.80

Tested by

no test coverage detected