daft.DataFrame.filter

daft.DataFrame.filter#

DataFrame.filter(predicate: Union[Expression, str]) DataFrame[source]#

Filters rows via a predicate expression, similar to SQL WHERE.

Alias for daft.DataFrame.where.

Parameters:

predicate (Expression) – expression that keeps row if evaluates to True.

Returns:

Filtered DataFrame.

Return type:

DataFrame