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 / _morestats / _parse_dist_kw

function

scipy.stats._morestats:_parse_dist_kw

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

Signature

def _parse_dist_kw(dist, enforce_subclass = True)

Summary

Parse dist keyword.

Parameters

dist : str or stats.distributions instance.

Several functions take dist as a keyword, hence this utility function.

enforce_subclass : bool, optional

If True (default), dist needs to be a _distn_infrastructure.rv_generic instance. It can sometimes be useful to set this keyword to False, if a function wants to accept objects that just look somewhat like such an instance (for example, they have a ppf method).

Aliases

  • scipy.stats._morestats._parse_dist_kw