Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
b583dd87
Commit
b583dd87
authored
Nov 29, 2018
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repair bug
parent
954afd78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
strategy_other.scala
eda/feededa/src/main/scala/com/gmei/strategy_other.scala
+3
-3
No files found.
eda/feededa/src/main/scala/com/gmei/strategy_other.scala
View file @
b583dd87
...
...
@@ -279,7 +279,7 @@ object diary_exposure {
val
final_cid_city
=
diary_id_temp
.
join
(
df_cid_city
,
Seq
(
"diary_id"
),
"left_outer"
)
final_cid_city
.
show
()
val
df1
=
final_cid_city
.
groupBy
(
"name"
).
count
().
orderBy
(
desc
(
"count"
))
df1
.
show
(
400
)
//
df1.show(400)
//3.5星以上日记本的id
...
...
@@ -289,7 +289,7 @@ object diary_exposure {
|from src_mimas_prod_api_diary
|where content_level >=3.5
|and doctor_id is not null
"""
.
stripMargin
"""
.
stripMargin
)
diary_id_temp2
.
createOrReplaceTempView
(
"diary_id_temp2"
)
...
...
@@ -315,7 +315,7 @@ object diary_exposure {
val
final_cid_city2
=
diary_id_temp2
.
join
(
df_cid_city2
,
Seq
(
"diary_id"
),
"left_outer"
)
final_cid_city2
.
show
()
val
df2
=
final_cid_city2
.
groupBy
(
"name"
).
count
().
orderBy
(
desc
(
"count"
))
df2
.
show
(
400
)
//
df2.show(400)
val
df3
=
df1
.
join
(
df2
,
Seq
(
"name"
),
"left_outer"
)
df3
.
show
(
400
)
...
...
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