# Cross analysis left # piv_tb=pd.pivot_table(df, values="left", index=["department",
"salary"], columns=["time_spend_company"],aggfunc=np.mean) #
piv_tb=pd.pivot_table(df,
values="left",index=["department","salary"],columns=["number_project"],aggfunc=np.mean)
# piv_tb = pd.pivot_table(df, values="left", index=["promotion_last_5years",
"salary"], columns=["Work_accident"],aggfunc=np.mean) # print(piv_tb.index) #
sns.heatmap(piv_tb,vmax=1,vmin=0) # plt.show() #
sns.barplot(x="salary",y="left",hue="department",data=df) # plt.show() #
sl_s=df["satisfaction_level"] #
sns.barplot(range(len(sl_s)),sl_s.sort_values()) #
#sns.barplot(range(len(sl_s)),sl_s.sort_values().diff().diff()) # plt.show()

Technology
©2019-2020 Toolsou All rights reserved,
C Review of basic language knowledge Go Language learning notes (GUI programming )Java Misunderstanding —— Method overloading is a manifestation of polymorphism ? How to achieve low cost and high stability for cloud native applications ?elementui Shuttle box el-transfer Display list content text too long C/C++ Memory model Element-Ui assembly Message Message prompt , alert Popup C# Making a simplified version of calculator Python In pycharm editor Interface style modification Tiktok refresh progress bar ( Two little balls turn ), The code is simple