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
67b07950
Commit
67b07950
authored
Feb 21, 2020
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
89b3ae79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
make_data.py
make_data.py
+17
-1
No files found.
make_data.py
View file @
67b07950
...
...
@@ -62,6 +62,22 @@ def doctor():
"merchant_id"
,
"doctor_ad_money_30_days"
,
"expand_rechange_amount_30"
,
"service_pv_30"
,
"mexpert_pv_30"
,
"organization_pv_30"
,
"budan_payment_30_days"
]
data
=
df
.
loc
[:,
columns
]
renames
=
{
'doctor_id'
:
'医生id'
,
'score'
:
'得分'
,
'ctr'
:
'点击率'
,
'commission'
:
'单pv佣金贡献'
,
'pv_ad'
:
'单pv广告消耗'
,
'service_exposure_pv_30'
:
'30天内美购曝光pv'
,
'service_ctr_30'
:
'30天内美购ctr'
,
'expert_exposure_pv_30'
:
'医生曝光次数-30天'
,
'expert_pv_30'
:
'医生主页PV-30天'
,
'merchant_id'
:
'商户id'
,
'doctor_ad_money_30_days'
:
'商户名下非医生、机构账号的验证订单抽成之和'
,
'expand_rechange_amount_30'
:
'统计期内该商户的广告消耗(CPC+CPT+其他'
,
'service_pv_30'
:
'该商户名下所有美购的美购详情页PV'
,
'mexpert_pv_30'
:
'该商户名下所有医生主页PV'
,
'organization_pv_30'
:
'该商户名下机构主页PV'
,
'budan_payment_30_days'
:
'30天已补订单佣金'
}
data
=
data
.
rename
(
columns
=
renames
)
data
=
data
.
drop_duplicates
()
data
.
to_csv
(
'/tmp/doctor.csv'
,
index
=
False
)
...
...
@@ -164,6 +180,6 @@ def hospital():
if
__name__
==
"__main__"
:
#
doctor()
doctor
()
hospital
()
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