{ } Raw JSON

bundles / scipy 1.18.0 / scipy / stats / _stats_py / _isconst

function

scipy.stats._stats_py:_isconst

source: /scipy/stats/_stats_py.py:2655

Signature

def _isconst(x)

Summary

Check if all values in x are the same. nans are ignored.

Extended Summary

x must be a 1d array.

The return value is a 1d array with length 1, so it can be used in np.apply_along_axis.

Aliases

  • scipy.stats._stats_py._isconst