Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
meta_base_code
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
宋柯
meta_base_code
Commits
e01038c0
Commit
e01038c0
authored
Jul 02, 2021
by
宋柯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
降配
parent
438f843a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
home_feed_recommend_strategy_d.py
task/home_feed_recommend_strategy_d.py
+3
-1
No files found.
task/home_feed_recommend_strategy_d.py
View file @
e01038c0
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment