atoti.array.nth_lowest module#
- atoti.array.nth_lowest(measure, n)#
Return a measure equal to the n-th lowest element of the passed array measure.
Example
>>> pnl_table = session.read_csv( ... f"{RESOURCES}/pnl.csv", ... array_separator=";", ... keys=["Continent", "Country"], ... table_name="PnL", ... ) >>> cube = session.create_cube(pnl_table) >>> l, m = cube.levels, cube.measures >>> m["3rd lowest"] = tt.array.nth_lowest(m["PnL.SUM"], n=3) >>> cube.query(m["PnL.SUM"], m["3rd lowest"]) PnL.SUM 3rd lowest 0 doubleVector[10]{-20.163, ...} -57.51
- Return type