I trying a simple linear regression using ols and it fails at columns with multiple word name.
mod = smf.ols(formula='Sales ~ Sub Region + Customer Segment', data=df)
I am searching how to fix but none has worked so far. The Q transformation I found hereas I use it below dsnt resolve it either. Does anyone know how can get this fixed?
mod = smf.ols(formula='Sales ~ Q(Sub Region) + Q(Customer Segment)', data=df)