Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
serviceRec
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
郭羽
serviceRec
Commits
f8046c29
Commit
f8046c29
authored
Dec 09, 2021
by
宋柯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模型调试
parent
670f53a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
featureEng.py
spark/featureEng.py
+6
-0
No files found.
spark/featureEng.py
View file @
f8046c29
...
@@ -808,6 +808,12 @@ def get_service_feature_df():
...
@@ -808,6 +808,12 @@ def get_service_feature_df():
def
addDays
(
n
,
format
=
"
%
Y
%
m
%
d"
):
def
addDays
(
n
,
format
=
"
%
Y
%
m
%
d"
):
return
(
date
.
today
()
+
timedelta
(
days
=
n
))
.
strftime
(
format
)
return
(
date
.
today
()
+
timedelta
(
days
=
n
))
.
strftime
(
format
)
#显示所有列
pd
.
set_option
(
'display.max_columns'
,
None
)
#显示所有行
pd
.
set_option
(
'display.max_rows'
,
None
)
#设置value的显示长度为100,默认为50
pd
.
set_option
(
'max_colwidth'
,
100
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
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