pyspark.sql.WindowSpec.orderBy

WindowSpec.orderBy(*cols)[source]

Defines the ordering columns in a WindowSpec.

New in version 1.4.0.

Parameters:
colsstr, Column or list

names of columns or expressions