Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
gm_strategy_cvr
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
rank
gm_strategy_cvr
Commits
0ccbe819
Commit
0ccbe819
authored
Sep 03, 2020
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fill null for service_id
parent
a766cc94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tractate_fe.py
src/models/esmm/fe/tractate_fe.py
+3
-0
No files found.
src/models/esmm/fe/tractate_fe.py
View file @
0ccbe819
...
...
@@ -407,6 +407,9 @@ def tractate_feature_engineering(tractate_df):
df
[
"is_related_service"
]
=
df
[
"is_related_service"
]
.
astype
(
int
)
df
[
"service_city"
]
=
df
[
"service_city"
]
.
fillna
(
""
)
df
[
"service_id"
]
=
df
[
"service_city"
]
.
fillna
(
"-1"
)
df
[
"recommend_service_id"
]
=
df
[
"recommend_service_id"
]
.
fillna
(
"-1"
)
df
=
df
[
TRACTATE_COLUMNS
]
print
(
"tractate: "
+
str
(
df
.
shape
))
...
...
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