Skip to content

Commit 62850e0

Browse files
committed
minor fix
1 parent 119322f commit 62850e0

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

absbox/local/plot.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import toolz as tz
1010
import logging
1111
from absbox.local.base import china_cumStats, english_cumStats,english_non_balance_flow,china_non_balance_flow
12-
12+
from absbox import readFlowsByScenarios
1313

1414
"""
1515
chinese character issue.
@@ -73,13 +73,13 @@ def plotPool(p:pd.DataFrame):
7373

7474
plt.show()
7575

76+
7677
def plotFlowByScenarios(rs:dict, path):
7778
""" Plot time series balance on return of multi-scenario/multi-structure """
7879

79-
grpNames = list(rs.keys())
80-
81-
flows = tz.valmap(lambda x: x & path.get() , rs)
82-
80+
df = readFlowsByScenarios(rs, path)
81+
82+
return df
8383

8484

8585
def plot_bond(rs, bnd, flow='本息合计'):

docs/source/analytics.rst

+6-3
Original file line numberDiff line numberDiff line change
@@ -1126,9 +1126,6 @@ User have the option to view multiple cashflow in a single dataframe,with column
11261126
:alt: readBondsCf
11271127
11281128
1129-
1130-
1131-
11321129
Fee Cashflow
11331130
^^^^^^^^^^^^^^
11341131
@@ -1146,6 +1143,12 @@ Account Cashflow
11461143
r['accounts']['acc01']
11471144
11481145
1146+
.. note:: Getting Multiple Items in same category
1147+
1148+
User has the option to view multiple fees or multiple bonds ,multiple accounts in a single dataframe. -> :ref:`View Multiple cashflow`
1149+
1150+
1151+
11491152
Pool Cashflow
11501153
^^^^^^^^^^^^^^^
11511154

0 commit comments

Comments
 (0)