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.NaturalOrder( *, ascending: bool = True, )
True
>>> df = pd.DataFrame( ... { ... "File": ["file10", "file2", "file1"], ... "Quantity": [10, 2, 1], ... } ... ) >>> table = session.read_pandas(df, table_name="String") >>> cube = session.create_cube(table) >>> l, m = cube.levels, cube.measures >>> l["File"].order = tt.NaturalOrder()
>>> cube.query(m["Quantity.SUM"], levels=[l["File"]]) Quantity.SUM File file1 1 file2 2 file10 10 >>> l["File"].order = tt.NaturalOrder(ascending=False) >>> cube.query(m["Quantity.SUM"], levels=[l["File"]]) Quantity.SUM File file10 10 file2 2 file1 1
orders
bool
Was this page helpful?