Filters a DataFrame based on the provided filter condition.Documentation Index
Fetch the complete documentation index at: https://docs.prophecy.ai/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
| Parameter | Description | Required |
|---|---|---|
| DataFrame | Input DataFrame on which the filter condition will be applied. | True |
| Filter Condition | BooleanType column or boolean expression. Supports SQL, Python and Scala expressions. | True |
Use the visual language syntax to call configuration variables in the Filter gem.
Example
In this example, the Filter gem is used to return only marketing orders that are either finished or approved, while excluding any orders that have been discounted.
The Filter gem configuration translates into the Spark code shown below, which applies the same filtering logic.

