OptionalbyOptionalindexAn index for the rows, returned as running.index, a Float64Array. Its
values must be numbers (a string is a TypeError); Python passes any index
through.
OptionalperiodsAnnualizes sharpe, sortino, and calmar (for example 252 for daily
bars). The default 1 gives per-step ratios.
One label per row, numbers or strings (Python's
by=). The result then holdsbyGroup.