swat.cas.table.CASTable.sort_values¶
-
CASTable.
sort_values
(by, axis=0, ascending=True, inplace=False, kind='quicksort', na_position='last')¶ Specify sort parameters for data in a CAS table
Parameters: - by : string or list-of-strings
The name or names of columns to sort by.
- axis : int, optional
Not implemented.
- ascending : boolean or list-of-booleans, optional
Sort ascending or descending. Specify a list of booleanss if sort orders are not all one type.
- inplace : boolean, optional
If True, the sort order is embedded into the CASTable instance. If False, a new CASTable is returned with the sort parameters embedded.
- kind : string, optional
Not implemented.
- na_position : string, optional
Not implemented.
Returns: - self
If inplace == True.
- CASTable
If inplace == False.
Notes
Since CAS tables can be distributed across a grid of machines the order that they are stored in is not guaranteed. A sort order is required to retrieve data in a predictable order.