Using ols function with parameters that contain numbers/spaces
问题 I am having a lot of difficulty using the statsmodels.formula.api function ols(formula,data).fit().rsquared_adj due to the nature of the names of my predictors. The predictors have numbers and spaces etc in them which it clearly doesn't like. I understand that I need to use something like patsy.builtins.Q So lets say my predictor would be weight.in.kg , it should be entered as follows: Q("weight.in.kg") so I need to take my formula from a list, and the difficulty arises in modifying every