qis.compute_total_return¶
- qis.compute_total_return(prices)[source]¶
Compute total return from first to last price.
- Parameters:
prices (DataFrame | Series) – Numeric price time series. Valid uniquely dated histories are interpreted chronologically, and pandas nullable floating values are supported
- Returns:
Array of total returns for DataFrame, float for Series, using each history’s first and last finite prices
- Return type: