.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "generated_examples\ifrs17sim\plot_ifrs_balance.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_generated_examples_ifrs17sim_plot_ifrs_balance.py: ifrs17sim: IFRS balancesheet itms ======================================= Fulfilment CF, CSM, Cash balances .. seealso:: * The :mod:`~ifrs17sim` library .. GENERATED FROM PYTHON SOURCE LINES 10-34 .. image-sg:: /generated_examples/ifrs17sim/images/sphx_glr_plot_ifrs_balance_001.png :alt: Fulfilment CF and CSM :srcset: /generated_examples/ifrs17sim/images/sphx_glr_plot_ifrs_balance_001.png :class: sphx-glr-single-img .. code-block:: default # When the current directory is this folder, # The try-except statement below can be replaced by just the last two # import statements. import draw_charts import modelx as mx import seaborn as sns sns.set_theme(style="darkgrid") model = mx.read_model("model") proj = model.OuterProj[171] ifrsbs = proj.cells['CSM', 'PV_FutureCF', 'AccumCF'].to_frame(range(10)) ifrsbs.columns = ['CSM', 'FCF', 'Cash'] ifrsbs['FCF'] = -1 * ifrsbs['FCF'] ifrsbs['Cash'] = -1 * ifrsbs['Cash'] draw_charts.draw_stackedbarpairs(ifrsbs, title='Fulfilment CF and CSM') .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 1.401 seconds) .. _sphx_glr_download_generated_examples_ifrs17sim_plot_ifrs_balance.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_ifrs_balance.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_ifrs_balance.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_