修改数据清洗异常

This commit is contained in:
王思川 2022-03-07 16:43:57 +08:00
parent f84c98d4eb
commit b67844e5d1
1 changed files with 1 additions and 1 deletions

View File

@ -57,6 +57,6 @@ def change_log_detail(param):
id_list.append(1 if df_sub1['companyId'].values[0] is None else 0) id_list.append(1 if df_sub1['companyId'].values[0] is None else 0)
df['detail'] = detail_list df['detail'] = detail_list
df['companyId'] = id_list df['companyId'] = id_list
df = df.drop(df[df['companyId'] == 0].index) df.drop(df[df['companyId'] == 0].index)
result = list(json.loads(df[['title', 'total', 'detail']].T.to_json()).values()) result = list(json.loads(df[['title', 'total', 'detail']].T.to_json()).values())
return result return result