Window functions allow users of Spark SQL to calculate results such as the rank of a given row or a moving average over a range of input rows. They significantly improve the expressiveness of Spark's SQL and Data Frame APIs.
Link to the Colab Notebook: https://colab.research.google.com/dri...