pyspark.sql.Window.partitionBy

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

Creates a WindowSpec with the partitioning defined.