From 0bdbed9454c78b45993607e048a94444d1dee174 Mon Sep 17 00:00:00 2001 From: muliangshu <283299495@qq.com> Date: Tue, 23 Jul 2024 10:50:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=96=B9=E5=9D=87=E4=BB=B7?= =?UTF-8?q?=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/jh/price/price_third_gxd.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dags/jh/price/price_third_gxd.py b/dags/jh/price/price_third_gxd.py index a807e6a..98cc8b1 100644 --- a/dags/jh/price/price_third_gxd.py +++ b/dags/jh/price/price_third_gxd.py @@ -36,6 +36,8 @@ for city in city_name_id_map: anjuke_price.rename(columns={'price': '安居客价格'}, inplace=True) base_price_gj = get_district_stat_on(city) seaweed_df = get_seaweed(city) + if seaweed_df.empty: + continue seaweed_df['_id'] = seaweed_df['_id'].astype('str') if base_price_gj.empty: continue