fix: 修复晋升信息缺失情况
- 在处理晋升信息时,添加了对职务2和日期2的默认值设置,确保在晋升记录不足时使用初始职务和入职时间填充相关字段。
This commit is contained in:
parent
b04495a621
commit
027ae0d108
3
main.py
3
main.py
@ -210,6 +210,9 @@ for index, row in BaseData.iterrows():
|
||||
if promote.shape[0] > 1:
|
||||
BaseData.at[index, "职务2"] = promote.iloc[1]["新职务"]
|
||||
BaseData.at[index, "日期2"] = promote.iloc[1]["任职时间"]
|
||||
else:
|
||||
BaseData.at[index, "职务2"] = row["初始职务"]
|
||||
BaseData.at[index, "日期2"] = row["入职时间"]
|
||||
|
||||
promote = promote.sort_values(by="任职时间").reset_index(drop=True)
|
||||
fill_prompt_info(ws, promote)# 填充晋升信息
|
||||
|
Loading…
x
Reference in New Issue
Block a user