pyspark.sql.WindowSpec.partitionBy

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

Defines the partitioning columns in a WindowSpec.

New in version 1.4.0.

Parameters
colsstr, Column or list

names of columns or expressions