pyspark.sql.WindowSpec.orderBy

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

Defines the ordering columns in a WindowSpec.

New in version 1.4.0.

Parameters
colsstr, Column or list

names of columns or expressions