pyarrow.parquet.filters_to_expression#
- pyarrow.parquet.filters_to_expression(filters)[source]#
检查过滤器格式是否正确并转换为
Expression。- 参数:
- filters
List[Tuple] 或List[List[Tuple]]
- filters
- 返回:
pyarrow.compute.Expression表示过滤器的 Expression
备注
有关详细信息,请参阅内部属性
pyarrow._DNF_filter_doc。示例
>>> filters_to_expression([('foo', '==', 'bar')]) <pyarrow.compute.Expression (foo == "bar")>