Skip to contents

Allocates exposure_value_usd to assets using each asset baseline NPV share. It mirrors the Python logic: compute run-level shares, average exposure share after dropping run_id, then re-scale so each original portfolio row keeps its total exposure.

Usage

add_exposure_share_from_npv(portfolio_results)

Arguments

portfolio_results

Output of run_trisk_on_simple_portfolio before share allocation.

Value

Input dataframe with an additional exposure_value_usd_share column.