Del via


where

where is an alias for filter.

Syntax

where(condition: Union[Column, str])

Parameters

Parameter Type Description
condition Column or str A Column of BooleanType or a string of SQL expressions.

Returns

DataFrame: A new DataFrame with rows that satisfy the condition.