import pandas as pd
df = pd.read_csv(‘打卡记录.csv’)
df[‘考勤状态’] = df.apply(lambda row: ‘迟到’ if row[‘上班时间’] > ’09:00:00′ else ‘正常’, axis=1)
df.to_excel(‘考勤表.xlsx’, index=False)
利唐i人事HR社区,发布者:hi_ihr,转转请注明出处:https://www.ihr360.com/hrnews/20241240961.html