text_plain_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.model_selection import GridSearchCV
from sklearn.linear_model import Lasso
from sklearn.ensemble import RandomForestRegressor
from sklearn.metrics import r2_score
from sklearn.metrics import mean_squared_error
pd.options.display.max_rows = None
pd.options.display.max_columns = None
SEED = 746

data = pd.read_csv('/kaggle/input/body-fat-prediction-dataset/bodyfat.csv')
print(data.shape)
data.head()