Postgresql Moving Average Window Function Pyspark Dataframe Tutorial