Postgresql Moving Average Window Function In Pyspark