filter
The filter method creates a new PartitionedTable containing only the rows meeting the filter criteria. This method is analagous to a where applied to a regular table.
Warning
Partitioned tables cannot be filtered on the __CONSTITUENT__ column.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| filters | Union[str, Filter, Sequence[str], Sequence[Filter]] | The filter conditions or Filter objects to apply. |
Returns
A PartitionedTable.
Example
In the following example, partitioned_table is filtered to create a new partitioned table containing only the rows where IntCol is greater than 2.