data

property LinearModel.data: DataFrame

Data for the linear regression model, is a pandas.DataFrame containing all regressor variables \(X\) and the response variable \(y\).

Returns

pandas.DataFrame

Observed data of the model. It cannot be empty. It must contain regressor variables \(X\) and the response variable \(y\).

Raises

TypeError

If data is not an instance of pandas.DataFrame.

ValueError

If data is an empty pandas.DataFrame.