predict data from model code example
Example: how to predict the output for new data with the model tested already
data_2017 = pd.read_csv(data_path)
test_predictions = logmodel.predict(data_2017[['Daily Time Spent on Site', 'Age', 'Area Income','Daily Internet Usage', 'Male']])
or
data_2017["predictions"] = test_predictions