pyspark.sql.WindowSpec.orderBy

WindowSpec.orderBy(*cols: Union[ColumnOrName, List[ColumnOrName_]]) → WindowSpec

Defines the ordering columns in a WindowSpec.

Parameters
colsstr, Column or list

names of columns or expressions