Python Pandas: Filter DataFrame for Employees Joining in 2019
Apologies for the confusion. It seems there was an error in the code. To filter for the employees who joined in 2019, please use the following code:
df_2019 = df[df['入职年份']==2019]
This will filter the DataFrame df to only include rows where the '入职年份' column is equal to 2019, which represents the employees who joined in 2019.
原文地址: https://www.cveoy.top/t/topic/zHL 著作权归作者所有。请勿转载和采集!