From ed57487aef3fd332052fc53715e74e17978a38f0 Mon Sep 17 00:00:00 2001 From: "shenjian@fangjia.com" Date: Thu, 9 Mar 2023 15:51:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/business/business/community/avg_cost.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dags/business/business/community/avg_cost.py b/dags/business/business/community/avg_cost.py index 81d83e3..944010a 100644 --- a/dags/business/business/community/avg_cost.py +++ b/dags/business/business/community/avg_cost.py @@ -124,10 +124,7 @@ def sync(city=None): print(lng) print(lat) print(price) - if pd.notna(price) or price > 0: - seaweed_df.loc[index, 'avg_cost'] = price - else: - seaweed_df.loc[index, 'avg_cost'] = None + seaweed_df.loc[index, 'avg_cost'] = price with ThreadPoolExecutor(max_workers=30) as pool: for index, item in seaweed_df.iterrows(): pool.submit(find_around_price_item, index, item)