data¶
- property LinearModel.data: DataFrame
Data for the linear regression model, is a
pandas.DataFramecontaining all regressor variables \(X\) and the response variable \(y\).Returns¶
pandas.DataFrameObserved data of the model. It cannot be empty. It must contain regressor variables \(X\) and the
response_variable\(y\).
Raises
TypeErrorIf
datais not an instance ofpandas.DataFrame.ValueErrorIf
datais an emptypandas.DataFrame.