This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / stats / _stats_py / _isconst

function

scipy.stats._stats_py:_isconst

source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_stats_py.py:2665

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