How to count number of rows in dataframe pyspark July 8, 2019 16 32 64 128 How to count number of rows in each department using pyspark dataframe window functions