pyarrow.compute.mean

pyarrow.compute.mean(array, *, memory_pool=None)

Compute the mean of a numeric array.

Null values are ignored. The result is always computed as a double, regardless of the input types

Parameters
  • array (Array-like) – Argument to compute function

  • memory_pool (pyarrow.MemoryPool, optional) – If not passed, will allocate memory from the default memory pool.