I have code like this
m2=smf.ols(formula=\'demand~year+C(months)+year*C(months)\',data=df).fit() m2.summary()
A dataframe with three columns,