Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
F
fund_report
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭熊
fund_report
Commits
aa00a077
Commit
aa00a077
authored
Dec 26, 2020
by
赵杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收益率0
parent
48fc6aa5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
week_evaluation.py
app/utils/week_evaluation.py
+5
-1
No files found.
app/utils/week_evaluation.py
View file @
aa00a077
...
...
@@ -23,7 +23,11 @@ def simple_return(net_worth):
简单收益率
net_worth:净值或指数数据
"""
d
=
net_worth
/
net_worth
.
shift
(
1
)
-
1
try
:
d
=
net_worth
/
net_worth
.
shift
(
1
)
-
1
except
:
net_worth
.
iloc
[
0
]
=
0
return
net_worth
d
.
iloc
[
0
]
=
0
return
d
...
...
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