Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tuia-alg-engineering-py
Project
Project
Details
Activity
Releases
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
mengxiangxuan
tuia-alg-engineering-py
Commits
ac93b374
Commit
ac93b374
authored
Oct 30, 2018
by
mengxiangxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
00
parent
f1f0bbbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
samples_create.py
auto-spread/auto_manage/samples_create.py
+2
-1
No files found.
auto-spread/auto_manage/samples_create.py
View file @
ac93b374
...
...
@@ -202,9 +202,11 @@ select * from advert.dws_not_luanch_create_samples_mxx where slotid is not nul
cursor
.
execute
(
sql
)
df1
=
pd
.
DataFrame
(
cursor
.
fetchall
())
df1
.
columns
=
list
(
la
)
df1
=
df1
.
fillna
(
value
=
'.0'
)
df1
=
df1
.
astype
(
'str'
)
df1
.
to_csv
(
'scene_info.csv'
,
index
=
False
,
sep
=
'|'
)
#广告特征数据
df2
=
ad_info_match_slot
df2
.
columns
=
[
'f108001'
,
'f101001'
,
'f106001'
,
'f102001'
,
'fee'
]
...
...
@@ -212,7 +214,6 @@ df2=df2.astype('str')
df2
.
to_csv
(
'ad_info.csv'
,
index
=
False
,
sep
=
'|'
)
#[slot,配置]发券平均arpu
sql_min_arpu
=
'''
select slotid,avg(arpu) min_arpu from
...
...
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