snowflake.snowpark.functions.ntile¶
- snowflake.snowpark.functions.ntile(e: Union[int, Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L6869-L6897)¶
Divides an ordered data set equally into the number of buckets specified by n. Buckets are sequentially numbered 1 through n.
- Parameters:
e – The desired number of buckets; must be a positive integer value.
Example: