Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/scipy/stats/stats.py: 70%

10 statements  

« prev     ^ index     » next       coverage.py v7.3.2, created at 2023-12-12 06:31 +0000

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 

5import warnings 

6from . import _stats_py 

7 

8 

9__all__ = [ # noqa: F822 

10 'find_repeats', 'gmean', 'hmean', 'pmean', 'mode', 'tmean', 'tvar', 

11 'tmin', 'tmax', 'tstd', 'tsem', 'moment', 

12 'skew', 'kurtosis', 'describe', 'skewtest', 'kurtosistest', 

13 'normaltest', 'jarque_bera', 'itemfreq', 

14 'scoreatpercentile', 'percentileofscore', 

15 'cumfreq', 'relfreq', 'obrientransform', 

16 'sem', 'zmap', 'zscore', 'gzscore', 'iqr', 'gstd', 

17 'median_absolute_deviation', 'median_abs_deviation', 

18 'sigmaclip', 'trimboth', 'trim1', 'trim_mean', 

19 'f_oneway', 'F_onewayConstantInputWarning', 

20 'F_onewayBadInputSizesWarning', 

21 'PearsonRConstantInputWarning', 'PearsonRNearConstantInputWarning', 

22 'pearsonr', 'fisher_exact', 

23 'SpearmanRConstantInputWarning', 'spearmanr', 'pointbiserialr', 

24 'kendalltau', 'weightedtau', 'multiscale_graphcorr', 

25 'linregress', 'siegelslopes', 'theilslopes', 'ttest_1samp', 

26 'ttest_ind', 'ttest_ind_from_stats', 'ttest_rel', 

27 'kstest', 'ks_1samp', 'ks_2samp', 

28 'chisquare', 'power_divergence', 

29 'tiecorrect', 'ranksums', 'kruskal', 'friedmanchisquare', 

30 'rankdata', 

31 'combine_pvalues', 'wasserstein_distance', 'energy_distance', 

32 'brunnermunzel', 'alexandergovern', 'gcd', 'namedtuple', 'array', 

33 'ma', 'cdist', 'check_random_state', 'MapWrapper', 

34 'rng_integers', 'float_factorial', 'linalg', 'distributions', 

35 'mstats_basic', 'make_dataclass', 'ModeResult', 'DescribeResult', 

36 'SkewtestResult', 'KurtosistestResult', 'NormaltestResult', 

37 'Jarque_beraResult', 'HistogramResult', 'CumfreqResult', 

38 'RelfreqResult', 'SigmaclipResult', 'F_onewayResult', 

39 'AlexanderGovernResult', 'AlexanderGovernConstantInputWarning', 

40 'SpearmanrResult', 'PointbiserialrResult', 'KendalltauResult', 

41 'WeightedTauResult', 'MGCResult', 'Ttest_1sampResult', 'Ttest_indResult', 

42 'Ttest_relResult', 'Power_divergenceResult', 'KstestResult', 

43 'Ks_2sampResult', 'RanksumsResult', 'KruskalResult', 

44 'FriedmanchisquareResult', 'BrunnerMunzelResult', 'RepeatedResults' 

45] 

46 

47 

48def __dir__(): 

49 return __all__ 

50 

51 

52def __getattr__(name): 

53 if name not in __all__: 

54 raise AttributeError( 

55 "scipy.stats.stats is deprecated and has no attribute " 

56 f"{name}. Try looking in scipy.stats instead.") 

57 

58 warnings.warn(f"Please use `{name}` from the `scipy.stats` namespace, " 

59 "the `scipy.stats.stats` namespace is deprecated.", 

60 category=DeprecationWarning, stacklevel=2) 

61 

62 return getattr(_stats_py, name)