partitionBy
partitionBy.RdDefines the partitioning columns in a WindowSpec.
Arguments
- x
 a WindowSpec.
- ...
 additional column(s) to partition on.
- col
 a column to partition on (described by the name or Column).
See also
Other windowspec_method: 
orderBy(),
rangeBetween(),
rowsBetween()