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 prices is neither a DataFrame nor a Series.

Return type:

DataFrame

Note

compute_ra_perf_table calls this once on the native history for its visible return columns and once on freq_vol boundaries for ratio-only numerators. This duplication keeps both public contracts explicit and could be cached for unusually large panels.