text_html_output_1.png
import pandas as pd

import warnings    # We want to suppress warnings

warnings.filterwarnings('ignore')
HRData = pd.read_csv('../input/WA_Fn-UseC_-HR-Employee-Attrition.csv')

HRData.isnull().any()

hrdunique = HRData.nunique()
hrdunique = hrdunique.sort_values()
hrdunique

hrd = HRData.copy()
hrd.drop('Over18', axis=1, inplace=True)
hrd.drop('StandardHours', axis=1, inplace=True)
hrd.drop('EmployeeNumber', axis=1, inplace=True)
hrd.drop('EmployeeCount', axis=1, inplace=True)

hrd.groupby('Attrition').mean()