Description
In the previous stages, you used only one independent variable. Now, your task is to include other variables into a model.
Objectives
- Read the data. For downloading the dataset refer to Stage 1;
- Load data with
pandas.read_csv; - Make
Xa DataFrame with predictors andya series with a target. To makeX, drop target variable from the data. All other variables leave unchanged. - Split the predictors and target into training and test sets. Use
test_size=0.3andrandom_state=100— they guarantee that the results will be the same as the test system expects. - Fit the model predicting salary based on all other variables;
- Print the model coefficients separated by a comma.
Example
Example 1: program output
17.54323e+10, 34543.56776e+05, 12.345, -23413.00987e+13, 0