text_plain_output_1.png
import pandas as pd

df = pd.read_csv('../input/hr-analytics/HR_comma_sep.csv')

left = df[df.left == 1]
left.shape

retained = df[df.left == 0]
retained.shape

df.groupby('left').mean()

pd.crosstab(df.Department, df.left).plot(kind='bar')