mstats_extras.py 1001 B

12345678910111213141516171819202122232425262728293031323334
  1. # This file is not meant for public use and will be removed in SciPy v2.0.0.
  2. # Use the `scipy.stats` namespace for importing the functions
  3. # included below.
  4. import warnings
  5. from . import _mstats_extras
  6. __all__ = [ # noqa: F822
  7. 'compare_medians_ms',
  8. 'hdquantiles', 'hdmedian', 'hdquantiles_sd',
  9. 'idealfourths',
  10. 'median_cihs','mjci','mquantiles_cimj',
  11. 'rsh',
  12. 'trimmed_mean_ci', 'float_', 'int_', 'ma', 'MaskedArray', 'mstats',
  13. 'norm', 'beta', 't', 'binom'
  14. ]
  15. def __dir__():
  16. return __all__
  17. def __getattr__(name):
  18. if name not in __all__:
  19. raise AttributeError(
  20. "scipy.stats.mstats_extras is deprecated and has no attribute "
  21. f"{name}. Try looking in scipy.stats instead.")
  22. warnings.warn(f"Please use `{name}` from the `scipy.stats` namespace, "
  23. "the `scipy.stats.mstats_extras` namespace is deprecated.",
  24. category=DeprecationWarning, stacklevel=2)
  25. return getattr(_mstats_extras, name)