From 3d2acbddaacf7cbd44a81b0bfa17465bfa4ffb44 Mon Sep 17 00:00:00 2001 From: "shenjian@fangjia.com" Date: Wed, 22 Mar 2023 18:20:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/stat/community/community_count_price_rent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dags/stat/community/community_count_price_rent.py b/dags/stat/community/community_count_price_rent.py index 31f13a4..a4bc549 100644 --- a/dags/stat/community/community_count_price_rent.py +++ b/dags/stat/community/community_count_price_rent.py @@ -159,12 +159,12 @@ clickHouseClient.to_sql(df, table='community_coverage_stat', if_exists='insert', # 上传至nextcloud ret_df = pd.merge(ret_df, df, how='left', on=['city']) del ret_df['是否合理'] - +ret_df = ret_df.rename(columns={'city': '城市', 'city_level': '城市级别', 'community_count': "楼盘数量", "alias_count": "别名数量", "addr_alias_count": "地址别名数量", "exist_alias_community_count": "有别名覆盖小区数量"}) output_date = dateutils.format_date(dateutils.datetime.datetime.now()) aim_file_name = aim_path + "/" + output_date + '覆盖率统计.xlsx' -df.to_excel(aim_file_name, index=False) +ret_df.to_excel(aim_file_name, index=False) -# https://nextcloud.fangjia.com/s/3aw663fy9BbiBeL +# https://nextcloud.fangjia.com/s/3aw663fy9BbiBeLji'bie def up_to_nextcloud(): """