Is there any way in python to fit the linear regression model to predict the target using variables in multiple columns at once

前端 未结 0 838
陌清茗
陌清茗 2020-12-06 15:29

#datafram (df) has four columns (A, B, C, D) columns = [\'A\', \'B\', \'C\']

X = df[["A"]] Y = df[\'D\'] # Target Column

lm = LinearRegression() lm

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