qis.to_total_returns¶ qis.to_total_returns(prices)[source]¶ Compute total returns over entire price history. Parameters: prices (Series | DataFrame) – Price time series. Valid uniquely dated histories are interpreted chronologically Returns: Series of total returns indexed by DataFrame columns or the input Series name (0 when unnamed). A Series input also retains its name on the result. Return type: Series