In PySpark, would it be possible to obtain the total number of rows in a particular window?
Right now I am using:
w = Window.partitionBy("column_to_partition_by")
F.count(col("column_1")).over(w)
However, this only gives me the incremental row count. What I need is the total number of rows in that particular window partition. Can anyone tell me the command for this?