기술 통계

HR Analytics: Python으로 직원 이탈 예측하기

Hrant Davtyan

Assistant Professor of Data Science American University of Armenia

이직률

# Get the total number of observations and save it
n_employees = len(data)    
# Print the number of employees who left/stayed
print(data.churn.value_counts())  
# Print the percentage of employees who left/stayed
print(data.churn.value_counts()/n_employees*100)
0    76.191746
1    23.808254
Name: churn, dtype: float64

요약

재직 퇴직
76.19% 23.81%
HR Analytics: Python으로 직원 이탈 예측하기

상관관계

import matplotlib.pyplot as plt
import seaborn as sns
corr_matrix = data.corr()
sns.heatmap(corr_matrix)
plt.show()

히트맵

HR Analytics: Python으로 직원 이탈 예측하기

직접 연습해 봅시다!

HR Analytics: Python으로 직원 이탈 예측하기

Preparing Video For Download...