snowflake.snowpark.functions.endswith

snowflake.snowpark.functions.endswith(col: Union[Column, str], str: Union[Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L2963-L2975)

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
语言: 中文