Postgresql Moving Average Window Functions In Pyspark