Note
Click here to download the full example code
ifrs17sim
CSM waterfall chart¶The script draws a CSM waterfall chart. The script is broken down into pieces of code, and explained in a Jupyter notebook, IFRS17 CSM Waterfall Chart Notebook.
The live version of the notebook is available online.
import matplotlib.pyplot as plt
from draw_charts import draw_waterfall
try:
import ifrs17sim.ifrs17sim as ifrs17sim
except ImportError:
import ifrs17sim
model = ifrs17sim.build(True)
proj = model.OuterProj[1]
csmrf = proj.cells['CSM_Unfloored',
'IntAccrCSM',
'AdjCSM_FlufCF',
'TransServices'].to_frame(range(15))
csmrf['TransServices'] = -1 * csmrf['TransServices']
draw_waterfall(csmrf)
plt.show()
Total running time of the script: ( 0 minutes 3.889 seconds)