优化报错
This commit is contained in:
@@ -21,6 +21,8 @@ def calc_percentile(city=None):
|
||||
if pd.notna(city):
|
||||
sql += " where city='" + city + "'"
|
||||
community_summary_df = es206_client.scan_by_sql_to_data_frame(sql)
|
||||
if 'estate_charge_fix' not in community_summary_df.columns:
|
||||
community_summary_df['estate_charge_fix'] = 0
|
||||
community_summary_df['estate_charge_fix'] = community_summary_df['estate_charge'].combine_first(community_summary_df['estate_charge_fix'])
|
||||
community_summary_df['relative_price_ranking'] = community_summary_df['relative_price_ranking'] * 100
|
||||
if 'rent_price' not in community_summary_df.columns:
|
||||
|
||||
Reference in New Issue
Block a user