TestVal_For_Prediction = TestVal_For_Prediction.reset_index(drop=True)
Prediction = TestVal_For_Prediction.iloc[:,[0,2,3]]
Prediction["Adj_Marketing_Expenses"] = TestVal_For_Prediction["Marketing_Expenses_x"] + TestVal_For_Prediction["Marketing_Expenses_y"]
Prediction.rename(columns={'Marketing_Expenses_y': 'Marketing_Expenses_Range'},inplace=True)
Prediction.rename(columns={'Marketing_Expenses_x': 'Budgeted_Marketing_Expenses'},inplace=True)
Y_pred1 = regressor.predict(Prediction["Adj_Marketing_Expenses"].values.reshape(-1,1))
Prediction['Predicted_Sales'] = Y_pred1
Prediction.round({"Predicted_Sales":1})
Prediction
Output:
The "Predicted_Sales" Value is like xxx.0 end with point zero (decimal). How can I omit the decimal and convert it into an integer value?