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
eb909ed6
Commit
eb909ed6
authored
Dec 28, 2018
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drop duplicate
parent
99b7a9b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
EsmmData.scala
eda/feededa/src/main/scala/com/gmei/EsmmData.scala
+1
-1
No files found.
eda/feededa/src/main/scala/com/gmei/EsmmData.scala
View file @
eb909ed6
...
@@ -585,7 +585,7 @@ object GetDevicePortrait {
...
@@ -585,7 +585,7 @@ object GetDevicePortrait {
// println(max_count_tag.count())
// println(max_count_tag.count())
//drop duplicates
//drop duplicates
val
max_count_tag_rdd
=
max_count_tag
.
rdd
.
groupBy
(
_
.
getAs
[
String
(
"
device_id
"
)).
map
{
val
max_count_tag_rdd
=
max_count_tag
.
rdd
.
groupBy
(
_
.
getAs
[
String
]
(
"device_id"
)).
map
{
case
(
device_id
,
data
)
=>
case
(
device_id
,
data
)
=>
val
stat_date
=
data
.
map
(
_
.
getAs
[
String
](
"stat_date"
)).
head
val
stat_date
=
data
.
map
(
_
.
getAs
[
String
](
"stat_date"
)).
head
val
max_level1_id
=
data
.
map
(
_
.
getAs
[
String
](
"max_level1_id"
)).
head
val
max_level1_id
=
data
.
map
(
_
.
getAs
[
String
](
"max_level1_id"
)).
head
...
...
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