添加估值测试脚本
This commit is contained in:
@@ -85,9 +85,9 @@ normal_community_base_price.sort_values(by="cityrank", inplace=True)
|
||||
import_avm_evaluation_item_deal.sort_values(by="cityrank", inplace=True)
|
||||
import_avm_evaluation_item_third.sort_values(by="cityrank", inplace=True)
|
||||
|
||||
file_name = f"估值模型测试{year_month}_{dateutils.format_date(datetime.utcnow(), 'HHMMSS')}.xlsx"
|
||||
file_name = f"估值模型测试{year_month}_{dateutils.format_date(datetime.utcnow(), '%H%M%S')}.xlsx"
|
||||
aim_file_name = path + '/' + file_name
|
||||
with pd.ExcelWriter(file_name) as writer:
|
||||
with pd.ExcelWriter(aim_file_name) as writer:
|
||||
avm_evaluation.to_excel(writer, sheet_name="92个城市估值概况", columns=["cityname","community_num","price_coverage","sample_calc_coverage","ann_calc_coverage","artificial_calc_coverage","deal_test_case_num","deal_ppe15_coverage","deal_test_comm_num","deal_test_comm_coverage","deal_rate_median","deal_coefficient","third_test_comm_num","third_test_comm_coverage","third_ppe15_coverage","third_rate_median","third_coefficient"], header=["城市名称","小区量","可输出均价小区占比","样本计算占比","神经网络计算占比","人工指导价占比","成交测试案例总量","成交测试PPE15占比","成交测试小区量","成交测试小区量占比","成交比率中位数","成交比率离散系数","第三方均价测试小区量","第三方均价测试小区量占比","第三方均价测试PPE15占比","第三方比率中位数","第三方比率离散系数"], index=False)
|
||||
import_community_base_price.to_excel(writer, sheet_name="测试10个城市估值数据", columns=["cityname","distname","commname","comm_avg_price","confidence","calc_type"], header=["城市","区域","小区名","估值小区均价","置信度","估值方式"],index=False)
|
||||
import_avm_evaluation_item_deal.to_excel(writer, sheet_name="10个城市成交测试案例", columns=['cityname','distname', 'commname', 'unit_price', 'confidence', 'calc_type','total_price', 'deal_total_price', 'target_avg_price','pe',"dealdate","fitment","houseaspect","floornum","floorcnt","buildarea"], header=["城市","区域","小区名","修正均价","置信度","估值方式","小区估价","对标成交价","对标均价","PPE","dealdate","fitment","houseaspect","floornum","floorcnt","buildarea"], index=False)
|
||||
|
||||
Reference in New Issue
Block a user