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

A Rob4 picture A Rob4 · Apr 13, 2018 · Viewed 10.7k times · Source

I'm running the code below with statsmodel 0.8.0 which i believe is the latest.

import statsmodels.api as sm
est = sm.Logit(y_train, x_train)
result = est.fit()
print(result.summary())

This is giving me an error saying:

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

I dont seem to be able to find anything on stackoverflow or elsewhere to resolve this. Any help much appreciated.