修改库
This commit is contained in:
@@ -30,7 +30,7 @@ def simple_calc(result_df):
|
||||
ins = "','".join(actions)
|
||||
ins = "'" + ins + "'"
|
||||
simple_temp_df = pgsql.scan_by_sql_to_data_frame(
|
||||
"select distinct gujia_comm_id as commid from base.t0831_bigdata_forsale_gj_h where " +
|
||||
"select distinct gujia_comm_id as commid from base.bigdata_forsale_gj_h where " +
|
||||
" anc_tm> TO_DATE('" + month_before + "','YYYY-MM-DD') and gujia_comm_id in (" + ins + ")")
|
||||
|
||||
simple_df = pd.concat([simple_df, simple_temp_df])
|
||||
@@ -40,7 +40,7 @@ def simple_calc(result_df):
|
||||
ins = "','".join(actions)
|
||||
ins = "'" + ins + "'"
|
||||
simple_temp_df = pgsql.scan_by_sql_to_data_frame(
|
||||
"select distinct gujia_comm_id as commid from base.t0831_bigdata_forsale_gj_h where " +
|
||||
"select distinct gujia_comm_id as commid from base.bigdata_forsale_gj_h where " +
|
||||
" anc_tm> TO_DATE('" + month_before + "','YYYY-MM-DD') and gujia_comm_id in (" + ins + ")")
|
||||
simple_df = pd.concat([simple_df, simple_temp_df])
|
||||
actions.clear()
|
||||
@@ -91,7 +91,7 @@ if type == month_last:
|
||||
month_now = month_last
|
||||
month_last = month_before
|
||||
|
||||
df = pgsql.scan_by_sql_to_data_frame("SELECT gujia_bss_prc_id as id, urbn_nm as cityname, gujia_admndiv_nm as distname, gujia_bds_id as commid, comm_nm as commname, gujia_bds_clmtd as calc_type, gujia_bds_cfdc_dgr as confidence, gujia_comm_basic_prc as avg_price, gujiabds_clc_yrmo_val as year_month FROM t_app_p9pha_plda.avm_community_base_price_gj_h WHERE gujiabds_clc_yrmo_val IN('"+month_now+"', '"+month_last+"') " +
|
||||
df = pgsql.scan_by_sql_to_data_frame("SELECT gujia_bss_prc_id as id, urbn_nm as cityname, gujia_admndiv_nm as distname, gujia_bds_id as commid, comm_nm as commname, gujia_bds_clmtd as calc_type, gujia_bds_cfdc_dgr as confidence, gujia_comm_basic_prc as avg_price, gujiabds_clc_yrmo_val as year_month FROM price_stat.avm_community_base_price WHERE gujiabds_clc_yrmo_val IN('"+month_now+"', '"+month_last+"') " +
|
||||
" ORDER BY urbn_nm, gujia_admndiv_nm, gujia_bds_id, comm_nm, gujia_bds_clmtd")
|
||||
|
||||
six_map = dict()
|
||||
|
||||
Reference in New Issue
Block a user