This commit is contained in:
Jian Shen
2022-06-29 10:59:09 +08:00
parent e7ce8874b8
commit 7ea6ac2fe1
2 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -11,7 +11,7 @@ district_stat_conn = MAIN_MONGO_CLIENT.get_collection('fangjia_stat', 'district_
sqmetre_rent_conn = MAIN_MONGO_CLIENT.get_collection('fangjia', 'sqmetre_rent')
city_df = pd.read_excel('/opt/airflow/dags/repo/dags/mt/supply/data/美团19城市列表.xlsx')
city_df = pd.read_excel('data/美团19城市列表.xlsx')
cities = city_df['城市列表'].values.tolist()
path = "/home/airflow/data/mt"
@@ -30,7 +30,7 @@ logging.info("日期信息:" + month_start + ' ' + curr_month_start)
month_start_date = dateutils.parse_date(month_start, '%Y%m%d')
curr_month_start_date = dateutils.parse_date(curr_month_start, '%Y%m%d')
threshold_df = pd.read_excel('/opt/airflow/dags/repo/dags/mt/supply/data/租金和房价设置阀值(19个城市).xlsx')
threshold_df = pd.read_excel('data/租金和房价设置阀值(19个城市).xlsx')
min_rent = dict()
max_rent = dict()
min_price = dict()
@@ -41,6 +41,7 @@ for index, item in threshold_df.iterrows():
if item['租金最大值'] != '缺租金':
max_rent[item['城市']] = item['租金最大值']
min_price[item['城市']] = item['均价最小值']
max_price[item['城市']] = item['均价最大值']
avg_df = pd.DataFrame()
for city in cities: