@staticmethod<EOL><INDENT>def __filter(filterable, filter_, logic_operation='<STR_LIT>'):<DEDENT>
condition = []<EOL>if not filter_:<EOL><INDENT>return filterable<EOL><DEDENT>elif filter_.get('<STR_LIT:type>') == '<STR_LIT>':<EOL><INDENT>return filterable<EOL><DEDENT>else:<EOL><INDENT>for key, value in filter_.items():<EOL><INDENT>condition.append('<STR_LIT>'.format(key=key, value=value))<EOL><DEDENT><DEDENT>try:<EOL><INDENT>res = filterable.query("<STR_LIT>".format(operation=logic_operation).join(condition))<EOL><DEDENT>except pd.core.computation.ops.UndefinedVariableError:<EOL><INDENT>return pd.DataFrame()<EOL><DEDENT>else:<EOL><INDENT>return res<EOL><DEDENT>
filtering DataFrame using filter_ key-value conditions applying logic_operation
        only find rows strictly fitting the filter_ criterion