mstats_basic.py 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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_basic
  6. __all__ = [ # noqa: F822
  7. 'argstoarray',
  8. 'count_tied_groups',
  9. 'describe',
  10. 'f_oneway', 'find_repeats','friedmanchisquare',
  11. 'kendalltau','kendalltau_seasonal','kruskal','kruskalwallis',
  12. 'ks_twosamp', 'ks_2samp', 'kurtosis', 'kurtosistest',
  13. 'ks_1samp', 'kstest',
  14. 'linregress',
  15. 'mannwhitneyu', 'meppf','mode','moment','mquantiles','msign',
  16. 'normaltest',
  17. 'obrientransform',
  18. 'pearsonr','plotting_positions','pointbiserialr',
  19. 'rankdata',
  20. 'scoreatpercentile','sem',
  21. 'sen_seasonal_slopes','skew','skewtest','spearmanr',
  22. 'siegelslopes', 'theilslopes',
  23. 'tmax','tmean','tmin','trim','trimboth',
  24. 'trimtail','trima','trimr','trimmed_mean','trimmed_std',
  25. 'trimmed_stde','trimmed_var','tsem','ttest_1samp','ttest_onesamp',
  26. 'ttest_ind','ttest_rel','tvar',
  27. 'variation',
  28. 'winsorize',
  29. 'brunnermunzel', 'ma', 'masked', 'nomask', 'namedtuple',
  30. 'distributions', 'stats_linregress', 'stats_LinregressResult',
  31. 'stats_theilslopes', 'stats_siegelslopes', 'ModeResult',
  32. 'SpearmanrResult', 'KendalltauResult', 'PointbiserialrResult',
  33. 'Ttest_1sampResult', 'Ttest_indResult', 'Ttest_relResult',
  34. 'MannwhitneyuResult', 'KruskalResult', 'trimdoc', 'trim1',
  35. 'DescribeResult', 'stde_median', 'SkewtestResult', 'KurtosistestResult',
  36. 'NormaltestResult', 'F_onewayResult', 'FriedmanchisquareResult',
  37. 'BrunnerMunzelResult'
  38. ]
  39. def __dir__():
  40. return __all__
  41. def __getattr__(name):
  42. if name not in __all__:
  43. raise AttributeError(
  44. "scipy.stats.mstats_basic is deprecated and has no attribute "
  45. f"{name}. Try looking in scipy.stats instead.")
  46. warnings.warn(f"Please use `{name}` from the `scipy.stats` namespace, "
  47. "the `scipy.stats.mstats_basic` namespace is deprecated.",
  48. category=DeprecationWarning, stacklevel=2)
  49. return getattr(_mstats_basic, name)