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