From 0ded5b6901dabef6a1032feebb15187ae2023603 Mon Sep 17 00:00:00 2001 From: "shenjian@fangjia.com" Date: Tue, 7 Mar 2023 14:03:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=BA=E5=9D=87=E6=B6=88?= =?UTF-8?q?=E8=B4=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/business/business/community/avg_cost.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dags/business/business/community/avg_cost.py b/dags/business/business/community/avg_cost.py index 8a3198a..f47f70f 100644 --- a/dags/business/business/community/avg_cost.py +++ b/dags/business/business/community/avg_cost.py @@ -132,7 +132,7 @@ def sync(city=None): lng = commutils.format_lat_lng(item['lng']) lat = commutils.format_lat_lng(item['lat']) price = find_around_price(lng, lat) - if price > 0: + if pd.notna(price): seaweed_df.loc[index, 'avg_cost'] = price else: seaweed_df.loc[index, 'avg_cost'] = None