pyarrow.compute.stddev

pyarrow.compute.stddev(array, *, options=None, memory_pool=None, **kwargs)

Calculate the standard deviation of a numeric array.

The number of degrees of freedom can be controlled using VarianceOptions. By default (ddof = 0), the population standard deviation is calculated. Nulls are ignored. If there are not enough non-null values in the array to satisfy ddof, null is returned.

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

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

  • options (pyarrow.compute.VarianceOptions, optional) – Parameters altering compute function semantics

  • **kwargs (optional) – Parameters for VarianceOptions constructor. Either options or **kwargs can be passed, but not both at the same time.