prev

fun <T> DataRow<T>.prev(): DataRow<T>?

Returns the previous row in the DataFrame relative to the current row. If the current row is the first row in the DataFrame, it returns null.

For more information: See Row Functions on the documentation website.

Return

The previous DataRow if it exists, or null if the current row is the first in the DataFrame.