This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / 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