select()

This method returns all rows matching a given selector.

This page discusses:

Arguments

selector: Python callable object

Return Value

Returns a list-like Python object containing all values matching the selector.

The method passes each row in the data set to the selector. The rows are formatted as dictionary-like objects with all non-parameter values (such as IDs) defined as entries in the row object and all parameter values stored in a subdictionary corresponding to the key values on the row object.

The following example selects all rows for which the column with cementParamId has no defined value:

def nullCementTest(row):
    return row["values"][cementParam()["ID"]] == None

emptyRows = DataAPI.select(nullCementTest)