From 087ef47d4ef2b13adf65f9953b8970800eaf6a22 Mon Sep 17 00:00:00 2001 From: "shenjian@fangjia.com" Date: Tue, 7 Mar 2023 14:32:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8D=E6=9B=B4=E6=96=B0bu?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/business/business/community/avg_cost.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dags/business/business/community/avg_cost.py b/dags/business/business/community/avg_cost.py index 3431c52..7201ffa 100644 --- a/dags/business/business/community/avg_cost.py +++ b/dags/business/business/community/avg_cost.py @@ -136,11 +136,11 @@ def sync(city=None): seaweed_df.loc[index, 'avg_cost'] = price else: seaweed_df.loc[index, 'avg_cost'] = None - # with ThreadPoolExecutor(max_workers=80) as pool: - # for index, item in seaweed_df.iterrows(): - # pool.submit(find_around_price_item, index, item) - for index, item in seaweed_df.iterrows(): - find_around_price_item(index, item) + with ThreadPoolExecutor(max_workers=80) as pool: + for index, item in seaweed_df.iterrows(): + pool.submit(find_around_price_item, index, item) + # for index, item in seaweed_df.iterrows(): + # find_around_price_item(index, item) actions = list() count = 0 for index, item in seaweed_df.iterrows():