You are viewing documentation about an older version (1.1.0). View latest version

snowflake.snowpark.functions.ntile

snowflake.snowpark.functions.ntile(e: int | ColumnOrName) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.1.0/src/snowflake/snowpark/functions.py#L2948-L2957)

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.