image_output_1.png
import matplotlib.pyplot as plt

import numpy as np # linear algebra

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

import seaborn as sns

employees.shape

employees.mean()

import seaborn as sns
correlation_matrix = employees.corr()

employees['salary'] = pd.factorize(employees['salary'])[0]

employees['sales'] = pd.factorize(employees['sales'])[0]

leave_result = employees['left']
y = np.where(leave_result == 1, 1, 0)
y