statsmodel AttributeError: module 'scipy.stats' has no attribute 'chisqprob'

Try this:

result.summary2()

Link:

http://www.statsmodels.org/stable/generated/statsmodels.discrete.discrete_model.LogitResults.summary2.html?highlight=summary2#statsmodels.discrete.discrete_model.LogitResults.summary2


You have two options. Either use,

> result.summary2()

or you can import chisqprob.

> from scipy import stats

> stats.chisqprob = lambda chisq, df: stats.chi2.sf(chisq, df)

I had the same problem but this solved it. However, you first need to import stats from scipy.

stats.chisqprob = lambda chisq, df: stats.chi2.sf(chisq, df)

Hope it helps you.