This is an excerpt from Manning's book Spark in Action, Second Edition. Login to get full access to this book.
In this chapter, you will start slow, with a small reminder of what aggregations are. Then you’ll perform basic aggregations with Spark. You will be using both Spark SQL and the dataframe API.