snowflake.snowpark.DataFrame.where¶
- DataFrame.where(expr: Union[Column, str]) DataFrame[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.30.0/snowpark-python/src/snowflake/snowpark/dataframe.py#L1810-L1864)¶
Filters rows based on the specified conditional expression (similar to WHERE in SQL).
Examples:
- Parameters:
expr – a
Columnexpression or SQL text._ast_stmt – when invoked internally, supplies the AST to use for the resulting dataframe.