From 4b9c8f6d192bad8b149bdcb424888be228eee14d Mon Sep 17 00:00:00 2001 From: wangwenyan Date: Mon, 29 Dec 2025 15:01:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/office/sell/base_price.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dags/office/sell/base_price.py b/dags/office/sell/base_price.py index c0c10f6..16a875b 100644 --- a/dags/office/sell/base_price.py +++ b/dags/office/sell/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')