chaopower 2024-01-02 15:15:32 +08:00
parent 338159b277
commit 21ba86b6e2
1 changed files with 4 additions and 4 deletions

View File

@ -252,10 +252,10 @@ class AutoLayout:
ori_library_df = ori_library_df[(numeric_mask & time_mask)]
ori_library_df['level'] = ori_library_df.apply(self.level, axis=1)
# 极致客户有重复的把等级调到0防止放到了最后到了未测里
duplicate_name = ori_library_df[ori_library_df['level'] == 2].duplicated(subset='barcode', keep=False)
# 将 'level' 列的值改为 0
ori_library_df.loc[duplicate_name, 'level'] = 0
# # 极致客户有重复的把等级调到0防止放到了最后到了未测里
# duplicate_name = ori_library_df[ori_library_df['level'] == 2].duplicated(subset='barcode', keep=False)
# # 将 'level' 列的值改为 0
# ori_library_df.loc[duplicate_name, 'level'] = 0
for library, library_df in ori_library_df.groupby('#library'):