Ordinary Least Squares, P Value, Regression, Statsmodels.
(20% on test, and 80% on train): X_train,X_test,y_train,y_test=train_test_split(df.iloc[:,:-1],df['Y'],test_size=0.2,random_state=42) print("Train shape",X_train.shape, "Test shape", X_test.shape) sc_x=StandardScaler() X_train_sc=sc_x.fit_transform(X_train) # Apply the scaling to test data sets