Please note: for now, when you go to the tab IDE, you can solve this problem only via Pycharm. We are sorry for the inconvenience, we will fix this as soon as we can. If you prefer to solve the problem via a different IDE, you should open it manually and then copy the solution to the website.
You are given a dataset.
0. Load the dataset. You can use for this the code snippet below (pandas must be installed on your machine):
import pandas as pd
df = pd.read_csv('file_path\file_name.txt')1. Train the DummyRegressor on the training data df["X"] and the target data df["y"]
2. Predict the result for the data stored in X
3. Round the first element of the resulting array to 4 decimal places and insert it in the answer field.
Pass the following parameters to the DummyRegressor : strategy='quantile', quantile=0.4