pyarrow.parquet.filters_to_expression#
- pyarrow.parquet.filters_to_expression(filters)[source]#
Check if filters are well-formed and convert to an
Expression.- Parameters:
- filters
List[Tuple] orList[List[Tuple]]
- filters
- Returns:
pyarrow.compute.ExpressionAn Expression representing the filters
Notes
See internal
pyarrow._DNF_filter_docattribute for more details.Examples
>>> filters_to_expression([('foo', '==', 'bar')]) <pyarrow.compute.Expression (foo == "bar")>