|
@@ -20,6 +20,7 @@ def put_analysis_report_to_html(args, df_predict, df_accuracy):
|
|
|
label = args['label']
|
|
|
label_pre = args['label_pre']
|
|
|
farmId = args['farmId']
|
|
|
+ title = '分析报告 ' + args['mongodb_read_table'].split(',')[1]
|
|
|
acc_flag = df_accuracy.shape[0]
|
|
|
df_predict = df_predict.applymap(
|
|
|
lambda x: float(x.to_decimal()) if isinstance(x, Decimal128) else float(x) if isinstance(x,
|
|
@@ -215,7 +216,7 @@ def put_analysis_report_to_html(args, df_predict, df_accuracy):
|
|
|
</head>
|
|
|
<body>
|
|
|
<div class="container">
|
|
|
- <h1>分析报告</h1>
|
|
|
+ <h1>{title}</h1>
|
|
|
<!-- Pandas DataFrame 表格 -->
|
|
|
<div class="plot-container">
|
|
|
<h2>1. 预测功率与实际功率曲线对比</h2>
|