def total(self): """Total return.""" return self.wrap_reduced( nb.cum_returns_final_nb(self.to_2d_array(), np.full(len(self.columns), 0.)))
def total(self, wrap_kwargs: tp.KwargsLike = None) -> tp.MaybeSeries: """Total return.""" result = nb.cum_returns_final_nb(self.to_2d_array(), 0.) wrap_kwargs = merge_dicts(dict(name_or_index='total_return'), wrap_kwargs) return self.wrapper.wrap_reduced(result, **wrap_kwargs)
def total(self, wrap_kwargs=None): """Total return.""" wrap_kwargs = merge_dicts(dict(name_or_index='total_return'), wrap_kwargs) return self.wrapper.wrap_reduced(nb.cum_returns_final_nb( self.to_2d_array(), 0. ), **wrap_kwargs)