qis.compute_performance_table¶
- qis.compute_performance_table(prices, perf_params)[source]¶
Compute return-based performance metrics per asset.
Iterates per asset and delegates to
ret.compute_returns_dict, which produces total return, p.a. return, log returns and related statistics. Per-asset iteration is required because each column is dropped of NaNs independently to handle assets with different inception dates.- Parameters:
prices (DataFrame | Series) – DataFrame of asset price levels (dates × assets). A Series is treated as one column named after it.
perf_params (PerfParams) – Performance parameter object specifying frequencies and conventions. None uses
PerfParams(), without inferring a frequency.
- Returns:
DataFrame indexed by asset with columns from the returns dict.
- Raises:
TypeError – If
pricesis neither a DataFrame nor a Series.- Return type:
Note
compute_ra_perf_tablecalls this once on the native history for its visible return columns and once onfreq_volboundaries for ratio-only numerators. This duplication keeps both public contracts explicit and could be cached for unusually large panels.