Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
R
robo-dividend
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
wenwen.tang
robo-dividend
Commits
b4c62e45
Commit
b4c62e45
authored
Oct 20, 2023
by
wenwen.tang
😕
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配息记录若无则填充0
parent
4594dd01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
holder.py
portfolios/holder.py
+1
-1
No files found.
portfolios/holder.py
View file @
b4c62e45
...
...
@@ -203,7 +203,7 @@ class DividendPortfoliosHolder(PortfoliosHolder):
dividend
=
navs
.
pivot_table
(
index
=
'nav_date'
,
columns
=
'fund_id'
,
values
=
'dividend'
)
navs
=
navs
.
pivot_table
(
index
=
'nav_date'
,
columns
=
'fund_id'
,
values
=
'av'
)
navs
.
fillna
(
method
=
'ffill'
,
inplace
=
True
)
dividend
.
fillna
(
method
=
'ffill'
,
inplace
=
True
)
dividend
.
fillna
(
value
=
0
,
inplace
=
True
)
return
dict
(
navs
.
iloc
[
-
1
]),
dict
(
dividend
.
iloc
[
-
1
])
def
clear
(
self
,
day
=
None
,
risk
:
PortfoliosRisk
=
None
):
...
...
wenwen.tang
😕
@wenwen.tang
mentioned in commit
a145d019
·
Oct 20, 2023
mentioned in commit
a145d019
mentioned in commit a145d0194e4f5def46bb16f6244d72f89abab8b9
Toggle commit list
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