select()

This method selects all filters 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.

Each row in the data set is passed to the selector. The filters are formatted as dictionary-like objects. The following example selects all rows for which the column has the type LESS_THAN:

def lessThanTest(filter):
    return filter["type"] == "LESS_THAN"

ltFilters = FilterAPI.select(lessThanTest)