maxBy
Returns the first row that has the largest value in the given column, or throws an exception if DataFrame is empty.
API reference: maxBy
maxByOrNull
Returns the first row that has the largest value in the given column, or null if DataFrame is empty.
02 November 2026