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
54e1004c
Commit
54e1004c
authored
Dec 08, 2020
by
赵杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复数据库净值数据重复的bug,并添加去除不是交易日数据机制
parent
e1a145c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
data_service.py
app/service/data_service.py
+2
-0
No files found.
app/service/data_service.py
View file @
54e1004c
...
...
@@ -120,7 +120,9 @@ class UserCustomerDataAdaptor:
self
.
all_fund_performance
[
cur_fund_id
]
=
cur_fund_performance_df
cur_fund_nav_df
[
"price_date"
]
=
pd
.
to_datetime
(
cur_fund_nav_df
[
"price_date"
])
cur_fund_nav_df
.
drop_duplicates
(
subset
=
"price_date"
,
keep
=
'first'
,
inplace
=
True
)
cur_fund_nav_df
.
set_index
(
"price_date"
,
inplace
=
True
)
cur_fund_nav_df
=
cur_fund_nav_df
[
cur_fund_nav_df
.
index
.
isin
(
all_fund_nav
.
index
&
cur_fund_nav_df
.
index
)]
all_fund_nav
[
cur_fund_id
]
=
cur_fund_nav_df
[
"nav"
]
all_fund_cnav
[
cur_fund_id
]
=
cur_fund_nav_df
[
"cnav"
]
...
...
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