Commit e01038c0 authored by 宋柯's avatar 宋柯

降配

parent 438f843a
......@@ -210,6 +210,8 @@ pandas_df.fillna(0,inplace=True)
pandas_df['卡片ctr'] = pandas_df['卡片点击pv']/pandas_df['卡片曝光pv']
print(pandas_df)
spark.stop()
for row in pandas_df.iterrows():
partition_date = row[1]['日期']
device_os_type = row[1]['设备类型']
......@@ -238,7 +240,7 @@ db.close()
print("time cost:{} s".format(time.time()-startTime))
# t = 1
......
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