Functions.Ntile(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Window function: returns the ntile group id (from 1 to n
inclusive) in an ordered
window partition. For example, if n
is 4, the first quarter of the rows will get
value 1, the second quarter will get 2, the third quarter will get 3, and the last
quarter will get 4.
public static Microsoft.Spark.Sql.Column Ntile (int n);
static member Ntile : int -> Microsoft.Spark.Sql.Column
Public Shared Function Ntile (n As Integer) As Column
Parameters
- n
- Int32
Number of buckets
Returns
Column object
Remarks
This is equivalent to the NTILE function in SQL.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for