snowflake.snowpark.functions.repeat¶
- snowflake.snowpark.functions.repeat(s: ColumnOrName, n: Column | int) Column [source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.3.0/src/snowflake/snowpark/functions.py#L1603-L1620)¶
Builds a string by repeating the input for the specified number of times.
Example:
>>> df = session.create_dataframe([["a"], ["b"], ["c"]], schema=["a"]) >>> df.select(repeat(col("a"), 3).alias("result")).show() ------------ |"RESULT" | ------------ |aaa | |bbb | |ccc | ------------