maxBy
Returns the first row that has the largest value in the given column, or throws exception if DataFrame is empty.
maxByOrNull
Returns the first row that has the largest value in the given column, or null if DataFrame is empty.
24 October 2025