Window.
orderBy
Creates a WindowSpec with the ordering defined.
WindowSpec
previous
pyspark.sql.Window.currentRow
next
pyspark.sql.Window.partitionBy