how to predict the output for new data with the model tested already

Solutions on MaxInterview for how to predict the output for new data with the model tested already by the best coders in the world

showing results for - "how to predict the output for new data with the model tested already"
Elena
02 Mar 2019
1data_2017 = pd.read_csv(data_path)
2test_predictions = logmodel.predict(data_2017[['Daily Time Spent on Site', 'Age', 'Area Income','Daily Internet Usage', 'Male']])
3
4or
5
6data_2017["predictions"] = test_predictions