Postgresql Moving Average Window Function Pyspark Sql