Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Atoti Python SDK
atoti.CustomOrder( *, first_elements: Sequence[bool | int | float | date | datetime | time | str], )
>>> df = pd.DataFrame({"Product": ["TV", "Smartphone", "Computer", "Screen"]}) >>> table = session.read_pandas(df, table_name="Product") >>> cube = session.create_cube(table) >>> l, m = cube.levels, cube.measures >>> cube.query(m["contributors.COUNT"], levels=[l["Product"]]) contributors.COUNT Product Computer 1 Screen 1 Smartphone 1 TV 1 >>> l["Product"].order = tt.CustomOrder(first_elements=["TV", "Screen"]) >>> cube.query(m["contributors.COUNT"], levels=[l["Product"]]) contributors.COUNT Product TV 1 Screen 1 Computer 1 Smartphone 1
orders
Sequence[bool | int | float | date | datetime | time | str]
Was this page helpful?