text_plain_output_1.png
import matplotlib.pyplot as plt

import matplotlib.pyplot as plt

import numpy as np

import pandas as pd

import seaborn as sns

data = pd.read_csv('/kaggle/input/autompg-dataset/auto-mpg.csv', na_values='?', comment='\t', skipinitialspace=True)
data

data = data.replace(np.nan, 0)
data

cor = data.corr()

data = data.drop(['cylinders', 'displacement'], axis=1)
data

cor = data.corr()

x_train = data.iloc[:, 1:]
y_train = data.iloc[:, 0:1]
x_train