Statmodel OLS fails at column names with multiple words-Linear regression

前端 未结 0 419
被撕碎了的回忆
被撕碎了的回忆 2020-12-30 03:08

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\'         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题