From ab7d06194667ec8b138b483655a718f065dce23d Mon Sep 17 00:00:00 2001 From: wangwenyan Date: Mon, 29 Dec 2025 12:00:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8C=BA=E5=9F=9F=E8=B4=A2?= =?UTF-8?q?=E5=8A=9B=E8=AF=84=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/office/rent/base_price.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dags/office/rent/base_price.py b/dags/office/rent/base_price.py index f11a556..6e3a70e 100644 --- a/dags/office/rent/base_price.py +++ b/dags/office/rent/base_price.py @@ -1,6 +1,11 @@ """ 写字楼基准价 """ +import math +from datetime import datetime + +import numpy as np +import pandas as pd # 第一步:计算有样本写字楼的基准价 # 取近一年,最近100个样本的中位值 # 第二步:计算无样本写字楼的基准价 @@ -10,13 +15,8 @@ # # 第五步:本身没有等级和类型的写字楼 # 最近10个有样本写字楼的基准价的平均值 -from goojia_utils import ElasticSearchClient, dateutils, MAIN_MONGO_CLIENT, commutils -import pandas as pd -from datetime import datetime +from goojia_utils import ElasticSearchClient, dateutils, MAIN_MONGO_CLIENT from pymongo import UpdateOne -import math -import numpy as np -import sys es = ElasticSearchClient(host='192.168.0.206') seaweed_df = MAIN_MONGO_CLIENT.get_collection('fangjia', 'seaweed')