new_sanwei
chaopower 2024-09-12 10:42:41 +08:00
parent 01cdc59321
commit b6031f297c
1 changed files with 2 additions and 1 deletions

View File

@ -513,7 +513,7 @@ class AutoLayout:
ori_library_df.loc[barcode_mask, 'indexi7'] = ori_library_df.loc[barcode_mask, 'indexi7'].str[-8:]
# 非上海实验室
no_need_lab_mask = ori_library_df['createdbyorgid'].str.len() != '上海实验室'
no_need_lab_mask = ori_library_df['createdbyorgid'] != '上海实验室'
ori_library_df['note'] = ''
ori_library_df.loc[~numeric_mask, 'note'] = 'data_needed 列非数字'
@ -534,6 +534,7 @@ class AutoLayout:
# 时间格式化
ori_library_df['createdtime'] = pd.to_datetime(ori_library_df['createdtime'], errors='coerce')
print(ori_library_df)
ori_library_df['level'] = ori_library_df.apply(self.level, axis=1)
# 极致客户有重复的把等级调到1900防止放到了最后到了未测里