def filter_set ( input , * * params ) : PARAM_WHERE = 'where' return Converter . df2list ( pd . DataFrame . from_records ( input ) . query ( params . get ( PARAM_WHERE ) ) )
filter a dataset in python on multiple fields
Apply WHERE filter to input dataset : param input : : param params : : return : filtered data
def filter_set(input, **params):
    """
    Apply WHERE filter to input dataset
    :param input:
    :param params:
    :return: filtered data
    """
    PARAM_WHERE = 'where'

    return Converter.df2list(pd.DataFrame.from_records(input).query(params.get(PARAM_WHERE)))