pyspark.sql.WindowSpec.partitionBy

WindowSpec.partitionBy(*cols)[source]

Defines the partitioning columns in a WindowSpec.

New in version 1.4.0.

Parameters
colsstr, Column or list

names of columns or expressions