pyarrow.parquet.filters_to_expression#

pyarrow.parquet.filters_to_expression(filters)[source]#

Check if filters are well-formed and convert to an Expression.

Parameters:
filtersList[Tuple] or List[List[Tuple]]
Returns:
pyarrow.compute.Expression

An Expression representing the filters

Notes

See internal pyarrow._DNF_filter_doc attribute for more details.

Examples

>>> filters_to_expression([('foo', '==', 'bar')])
<pyarrow.compute.Expression (foo == "bar")>