优化
This commit is contained in:
@@ -18,8 +18,8 @@ log.info(f"系统当前时间 : {now}")
|
||||
def proc():
|
||||
# 区域维度,统计2个月内样本数据量
|
||||
es206_client = ElasticSearchClient(host='192.168.0.206')
|
||||
sql = 'select city,region,p_date,cat,root from seawater where cat = \'sell\' and p_date >=' + str(
|
||||
last_day) + ' and p_date<' + str(now_day)
|
||||
sql = 'select city,region,p_date,cat,root from seawater where cat = \'sell\' and p_date >=' + str(last_day) + ' and p_date<' + str(now_day)
|
||||
|
||||
log.info(f"城市区域维度 sql : {sql}")
|
||||
df = es206_client.scan_by_sql_to_data_frame(sql)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user