qis.to_factor_returns¶
- qis.to_factor_returns(prices, return_types=None, **kwargs)[source]¶
Transform each factor in its declared units using the standard return kernel.
- Parameters:
prices (DataFrame) – Ordered date-by-factor levels, including raw observed indices.
return_types (Dict[str, ReturnTypes] | None) – Exact factor mapping to LOG or DIFFERENCE. None means all LOG.
**kwargs – Sampling and missing-data options forwarded to to_returns. A true is_log_returns override is rejected; the per-factor mapping is authoritative.
- Returns:
Date-by-factor changes in original column order. No FX or funding adjustment.
- Raises:
ValueError – If labels/types disagree or a legacy Boolean overrides the mapping.
- Return type: