import pandas as pd
示例:读取考勤数据
data = pd.read_sql(“SELECT * FROM attendance_records WHERE date BETWEEN ‘2023-01-01’ AND ‘2023-01-31′”, conn)
示例:生成迟到统计
late_summary = data[data[‘status’] == ‘late’].groupby([‘department’])[’employee_id’].count()
利唐i人事HR社区,发布者:hi_ihr,转转请注明出处:https://www.ihr360.com/hrnews/20241246681.html