You are viewing documentation about an older version (1.3.0). View latest version

snowflake.snowpark.functions.endswith¶

snowflake.snowpark.functions.endswith(col: ColumnOrName, str: ColumnOrName) → Column[source]¶

Returns true if col ends with str.

Example:

>>> df = session.create_dataframe(["apple", "banana", "peach"], schema=["a"])
>>> df.select(endswith(df["a"], lit("ana")).alias("endswith")).collect()
[Row(ENDSWITH=False), Row(ENDSWITH=True), Row(ENDSWITH=False)]
Copy