Assume a dataframe of stock symbols with daily log returns:
current_grouped = current_frame.groupby(\'sym\') total_return = current_grouped.sum()