text_html_output_1.png
import pandas as pd

student = pd.read_csv('/kaggle/input/higher-education-predictors-of-student-retention/dataset.csv')

student.shape

student.columns

student.sample(4)

student.drop(student.index[student['Target'] == 'Enrolled'], inplace=True)

student.dtypes

student.corr()['Target']

student_df = student.iloc[:, [1, 11, 13, 14, 15, 16, 17, 20, 22, 23, 26, 28, 29, 34]]

student_df.corr()['Target']

X = student_df.iloc[:, 0:13]
y = student_df.iloc[:, -1]
X