import statsmodels.api as sm
import statsmodels.formula.api as smf
from linearmodelplot import plot_lm_summary
import warnings
warnings.simplefilter('ignore',FutureWarning)
iris = sm.datasets.get_rdataset('iris').data
iris.columns = ['Sepal_Length','Sepal_Width','Petal_Length','Petal_Width','Species']
lm = smf.ols("Sepal_Width ~ Sepal_Length + Petal_Length", data=iris).fit()
plot_lm_summary(lm);
lm.summary()