新增因子不足清理

This commit is contained in:
shenjian@fangjia.com
2023-03-20 18:04:11 +08:00
parent 109db091e0
commit ac42eb2812
@@ -202,7 +202,7 @@ def clear_rating(temp_df):
def sync(city=None):
clear_sql = "select city, region, name from community_summary where (total_price is null or estate_charge is null or avg_cost is null and consumption_potential is not null)"
clear_sql = "select city, region, name from community_summary where consumption_potential is not null and (total_price is null or estate_charge is null or avg_cost is null) "
if pd.isna(city):
# 清空缺少因子的老潜力
temp_df = es206_client.scan_by_sql_to_data_frame(clear_sql)