修复美团
This commit is contained in:
@@ -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