Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module 'scipy.stats' has no attribute 'gilbrat' #43

Closed
giulianosalvati opened this issue Oct 24, 2023 · 4 comments
Closed

module 'scipy.stats' has no attribute 'gilbrat' #43

giulianosalvati opened this issue Oct 24, 2023 · 4 comments

Comments

@giulianosalvati
Copy link

I've tried to upgrade SciPy but it hasn't worked.
Error in
dfit = distfit(distr='full',stats='energy',todf=True)

@Roman223
Copy link

The same to me

@giulianosalvati
Copy link
Author

@Roman223
i fix the error defining as follow:
distributions_list = [st.alpha, st.beta, st.betaprime, st.bradford, st.burr, st.cauchy,
st.chi, st.chi2, st.cosine, st.dgamma, st.dweibull, st.erlang, st.expon, st.exponnorm,
st.exponweib, st.exponpow, st.f, st.fatiguelife, st.fisk, st.foldcauchy, st.foldnorm,
st.genlogistic, st.genpareto, st.gennorm, st.genexpon, st.genextreme, st.gausshyper, st.gamma,
st.gengamma, st.genhalflogistic, st.gompertz, st.gumbel_r, st.gumbel_l,
st.halfcauchy, st.halflogistic, st.halfnorm, st.halfgennorm, st.hypsecant, st.invgamma,
st.invgauss, st.invweibull, st.johnsonsb, st.johnsonsu, st.laplace, st.levy,
st.logistic, st.loggamma, st.loglaplace, st.lognorm, st.lomax, st.maxwell, st.mielke,
st.nakagami, st.norm, st.pareto, st.pearson3, st.powerlaw, st.powerlognorm, st.powernorm,
st.rdist, st.reciprocal, st.rayleigh, st.rice, st.recipinvgauss, st.semicircular, st.t,
st.triang, st.truncexpon, st.truncnorm, st.tukeylambda, st.uniform, st.vonmises,
st.vonmises_line, st.wald, st.weibull_min, st.weibull_max, st.wrapcauchy]
within no st.gilbrat presence.

readable_distributions = [distrib.name for distrib in distributions_list]
dist= distfit(distr=readable_distributions,stats='energy',todf=True)

@Roman223
Copy link

I managed to fix the error by downgrading the scipy

@erdogant
Copy link
Owner

erdogant commented Oct 24, 2023

Thank you for mentioning it! There was a typo in Scipy which is fixed now!
update to the latest version with:

pip install -U distfit

@erdogant erdogant closed this as completed Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants