dqa.tasks.transformations.Sort#
- class dqa.tasks.transformations.Sort(key_name: str, descending: bool = False, axis: int = -1, **kwargs)#
Sorts data.
Sorts data with np.sort/np.argsort, by default along the last axis. Sorting affects all data rows listed in input_name. The order is determined by the data row with the name given in key_name. Only one key_name is possible.
- Parameters:
key_name (str) – The data row that determines the order for the sorted result. All other input rows are sorted in the same order.
descending (bool, default=False) – Determines whether to sort in descending order.
axis (int, default=-1) – Axis along which to sort. The behavior is identical to np.sort/np.argsort
Methods
finish
()Can perform actions that are required to clean up after the task has finished, e.g. close network connections etc.
in_out_default
input_output_dataset
input_output_machine
input_output_mode
input_output_name
log
modify_data_row
modify_dataset
modify_dataset_dict
modify_machine
modify_measurement
set_logging_level
transfer_metadata