python - Stack Overflow
https://stackoverflow.com/questions/5644978703.06.2019 · AttributeError: module 'statsmodels.formula.api' has no attribute 'OLS' Ask Question Asked 2 years, 7 months ago. Active 1 month ago. Viewed 34k times 17 4. I am trying to use Ordinary Least Squares for multivariable regression. But it says that there ...
API Reference - statsmodels
https://www.statsmodels.org/dev/api.htmlAPI Reference¶. The main statsmodels API is split into models: statsmodels.api: Cross-sectional models and methods.Canonically imported using import statsmodels.api as sm.. statsmodels.tsa.api: Time-series models and methods.Canonically imported using import statsmodels.tsa.api as tsa.. statsmodels.formula.api: A convenience interface for specifying …