text_plain_output_1.png
import pandas as pd

data = pd.read_csv('/kaggle/input/salary-dataset-simple-linear-regression/Salary_dataset.csv')

data.isnull().sum()

data.isnull().sum().to_frame().rename(columns={0: 'Total No. of Missing Values'})

x = data.YearsExperience
y = data.Salary

print('y_train data is')
y