snowflake.snowpark.functions.ntile¶
- snowflake.snowpark.functions.ntile(e: int | ColumnOrName) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.3.0/src/snowflake/snowpark/functions.py#L4814-L4842)¶
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: