Commit 6a1ed07e authored by rico.liu's avatar rico.liu

update

parent c14d7249
...@@ -210,17 +210,18 @@ def get_point_category_params_data(category): ...@@ -210,17 +210,18 @@ def get_point_category_params_data(category):
'''
filter_res = res[list(res.columns)[0:7] + filter_params_col_list] filter_res = res[list(res.columns)[0:7] + filter_params_col_list]
combine_df = pd.merge(price_df,filter_res,left_on = 'goods_id',right_on = '产品编码',how='left') combine_df = pd.merge(price_df,filter_res,left_on = 'goods_id',right_on = '产品编码',how='left')
combine_df['指数型号不在原始名称中'] = [1 if str(model).strip().upper() not in str(name).upper() else 0 for model,name in zip(combine_df['*产品型号'].tolist(),combine_df['source_goods_name'].tolist())] combine_df['指数型号不在原始名称中'] = [1 if str(model).strip().upper() not in str(name).upper() else 0 for model,name in zip(combine_df['*产品型号'].tolist(),combine_df['source_goods_name'].tolist())]
combine_df.to_excel(writer,f"{category_sheet_name}数据合并") combine_df.to_excel(writer,f"{category_sheet_name}数据合并")
print(f"{category_name}数据导出完毕!") print(f"{category_name}数据导出完毕!")
'''
writer.save() writer.save()
conn_zi_new.close() conn_zi_new.close()
category_list = category_list = ['多功能一体机','激光打印机','喷墨打印机','碎纸机','投影机','针式打印机','扫描仪','高拍仪','传真设备'] category_list = category_list = ['复印纸']
for category in category_list: for category in category_list:
get_point_category_params_data(category) get_point_category_params_data(category)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment