新增样本统计
This commit is contained in:
@@ -8,9 +8,9 @@ import logging
|
||||
"""
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
df = pd.read_excel('data/估值数据统计.xlsx')
|
||||
df = pd.read_excel('/opt/airflow/dags/repo/dags/stat/evaluate/data/估值数据统计.xlsx')
|
||||
year_month_day = dateutils.format_date(datetime.datetime.now())
|
||||
aim_file_name = 'data/估值数据统计结果' + year_month_day + '.xlsx'
|
||||
aim_file_name = '/opt/airflow/dags/repo/dags/stat/evaluate/data/估值数据统计结果' + year_month_day + '.xlsx'
|
||||
|
||||
seaweed_conn = MAIN_MONGO_CLIENT.get_collection('fangjia', 'seaweed')
|
||||
es206_client = ElasticSearchClient(host='192.168.0.206')
|
||||
@@ -43,7 +43,7 @@ def third_avg_stat():
|
||||
"""
|
||||
近半年有第三方均价小区数量及占比
|
||||
"""
|
||||
new_df = pd.read_excel('data/估值数据统计结果' + year_month_day + '.xlsx')
|
||||
new_df = pd.read_excel(aim_file_name)
|
||||
s_date = dateutils.format_date(dateutils.add_months(dateutils.datetime.datetime.now(), days=-180), fm='%Y%m')
|
||||
average_statistics_df = pd.DataFrame(
|
||||
list(average_statistics_conn.find({'s_date': {'$gte': int(s_date)}, 'category': 'district'}).batch_size(10000)))
|
||||
@@ -86,7 +86,7 @@ def deal_stat():
|
||||
"""
|
||||
近半年成交量及小区数量统计
|
||||
"""
|
||||
new_df = pd.read_excel('data/估值数据统计结果' + year_month_day + '.xlsx')
|
||||
new_df = pd.read_excel(aim_file_name)
|
||||
# 小区别名升级为单独df
|
||||
actions = list()
|
||||
for index, item in seaweed_df.iterrows():
|
||||
|
||||
Reference in New Issue
Block a user