第三方均价输出

This commit is contained in:
muliangshu
2024-07-23 10:58:51 +08:00
parent 9f8aa6c7a7
commit 446088c7d9
+1 -1
View File
@@ -58,7 +58,7 @@ for city in city_name_id_map:
price_merge = price_merge.merge(data_df_temp[['_id','国信达价格']], on='_id', how='left')
price_merge.rename(columns={'city': '城市', 'district': '区域', '_id': '小区ID', 'name': '小区名','yearmonth':'月份'}, inplace=True)
df_concat = pd.concat([df_concat,price_merge])
df_concat.to_excel(yearmonth + '小区第三方均价输出.xlsx', encoding='utf-8', index=False)
# df_concat.to_excel(yearmonth + '小区第三方均价输出.xlsx', encoding='utf-8', index=False)
output_path = pathAll + "/" + yearmonth + '小区第三方均价输出.xlsx'
df_concat.to_excel(output_path, index=False)