修复美团
This commit is contained in:
@@ -11,7 +11,6 @@ CREATE TABLE tmp.mt_community
|
||||
rent_price Nullable(INT) COMMENT '平米租金',
|
||||
lng Nullable(Float32) COMMENT '经度',
|
||||
lat Nullable(Float32) COMMENT '纬度',
|
||||
estate_type2 String COMMENT '物业类型',
|
||||
block String COMMENT '板块',
|
||||
loop_line_info String COMMENT '环线',
|
||||
business_quarter String COMMENT '商圈',
|
||||
|
||||
@@ -12,7 +12,6 @@ path = "/home/airflow/data/mt"
|
||||
if not os.path.exists(path):
|
||||
os.makedirs(path)
|
||||
|
||||
clickhouse_client = ClickHouseClient(database='fangjia_stat')
|
||||
tmp_ck = ClickHouseClient(database='tmp')
|
||||
|
||||
output_date = sys.argv[1] if len(sys.argv) > 1 else dateutils.format_date(datetime.datetime.now(), '%Y%m')
|
||||
@@ -90,6 +89,7 @@ def save2_clickhouse():
|
||||
result_df['hospital'] = result_df['hospital'].astype(int)
|
||||
result_df['property_fee'] = result_df['property_fee'].astype(float)
|
||||
|
||||
clickhouse_client = ClickHouseClient(database='fangjia_stat')
|
||||
for city in cities:
|
||||
temp_df = result_df[result_df['city'] == city]
|
||||
temp_df['year_month'] = dateutils.parse_date(curr_month_start, fm='%Y%m%d')
|
||||
|
||||
Reference in New Issue
Block a user