From 726490f872427394773f0c1a3d5e934309744d1e Mon Sep 17 00:00:00 2001 From: sunqiang Date: Thu, 30 Nov 2023 10:43:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=81=8F=E5=B7=AE=E8=BE=83?= =?UTF-8?q?=E5=A4=A7=E6=95=B0=E6=8D=AE=E5=B1=95=E7=A4=BAPPE=E8=BE=BE?= =?UTF-8?q?=E6=A0=87=E7=9A=84=E6=88=90=E4=BA=A4=E6=A1=88=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/jh/price/price_deviation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dags/jh/price/price_deviation.py b/dags/jh/price/price_deviation.py index 9c76b07..2eddcfc 100644 --- a/dags/jh/price/price_deviation.py +++ b/dags/jh/price/price_deviation.py @@ -27,7 +27,7 @@ price_df = pgsql.scan_by_sql_to_data_frame(f"select urbn_id,urbn_nm,gujia_admndi deal_df = pgsql.scan_by_sql_to_data_frame(f"select gujia_bds_mdl_id,gujia_comm_id,gujia_bds_trdtckt_prc from base.t0831_bigdata_deal_gj_h where to_char(txn_dt,'yyyyMM')='{month_last}' ") deal_price_df = deal_df.merge(price_df, on="gujia_comm_id", how="left") deal_price_df["ppe"] = round((deal_price_df["gujia_comm_basic_prc"] - deal_price_df['gujia_bds_trdtckt_prc']) / deal_price_df['gujia_bds_trdtckt_prc'], 4) -deal_price_df = deal_price_df[abs(deal_price_df['ppe']) > 0.15] +#deal_price_df = deal_price_df[abs(deal_price_df['ppe']) > 0.15] third_df = pgsql.scan_by_sql_to_data_frame(f"select gujia_bds_id as gujia_comm_id,gujia_dtsr_dsc,gujia_bds_comm_avprc from base.t0831_bigdata_third_party_price_gj_h where gujiabds_avprc_dt_val={month_last} ") third_df = third_df[third_df.gujia_dtsr_dsc.isin(['贝壳','链家'])]