snowflake.snowpark.functions.startswith¶ snowflake.snowpark.functions.startswith(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#L2947-L2960)¶ Returns true if col starts with str. Example::CopyExpand>>> df = session.create_dataframe( ... [["abc", "a"], ["abc", "s"]], ... schema=["S", "P"], ... ).select(startswith(col("S"), col("P"))) >>> df.collect() [Row(STARTSWITH("S", "P")=True), Row(STARTSWITH("S", "P")=False)] Show lessSee moreScroll to top