Commit ac93b374 authored by mengxiangxuan's avatar mengxiangxuan

00

parent f1f0bbbf
...@@ -202,9 +202,11 @@ select * from advert.dws_not_luanch_create_samples_mxx where slotid is not nul ...@@ -202,9 +202,11 @@ select * from advert.dws_not_luanch_create_samples_mxx where slotid is not nul
cursor.execute(sql) cursor.execute(sql)
df1 = pd.DataFrame(cursor.fetchall()) df1 = pd.DataFrame(cursor.fetchall())
df1.columns=list(la) df1.columns=list(la)
df1=df1.fillna(value='.0')
df1=df1.astype('str') df1=df1.astype('str')
df1.to_csv('scene_info.csv',index=False,sep='|') df1.to_csv('scene_info.csv',index=False,sep='|')
#广告特征数据 #广告特征数据
df2=ad_info_match_slot df2=ad_info_match_slot
df2.columns=['f108001','f101001','f106001','f102001','fee'] df2.columns=['f108001','f101001','f106001','f102001','fee']
...@@ -212,7 +214,6 @@ df2=df2.astype('str') ...@@ -212,7 +214,6 @@ df2=df2.astype('str')
df2.to_csv('ad_info.csv',index=False,sep='|') df2.to_csv('ad_info.csv',index=False,sep='|')
#[slot,配置]发券平均arpu #[slot,配置]发券平均arpu
sql_min_arpu=''' sql_min_arpu='''
select slotid,avg(arpu) min_arpu from select slotid,avg(arpu) min_arpu from
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment