Returns the last index of a Spark DataFrame
Returns the last index of a Spark DataFrame. The Spark
mapPartitionsWithIndex
function is used to iterate
through the last nonempty partition of the RDD to find the last record.
sdf_last_index(x, id = "id")
x |
A |
id |
The name of the index column. |
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.