Thống kê mô tả

Phân tích Nhân sự (HR Analytics): Dự đoán nghỉ việc bằng Python

Hrant Davtyan

Assistant Professor of Data Science American University of Armenia

Tỷ lệ nghỉ việc

# 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

Tóm tắt

Ở lại Rời đi
76.19% 23.81%
Phân tích Nhân sự (HR Analytics): Dự đoán nghỉ việc bằng Python

Tương quan

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

bản đồ nhiệt

Phân tích Nhân sự (HR Analytics): Dự đoán nghỉ việc bằng Python

Cùng luyện tập nào!

Phân tích Nhân sự (HR Analytics): Dự đoán nghỉ việc bằng Python

Preparing Video For Download...