concept min() in category pyspark

appears as: min()
Data Analysis with Python and PySpark

This is an excerpt from Manning's book Data Analysis with Python and PySpark.

In chapter 3, we brought back the GroupedData into a data frame by using the count() method, which returns the count of each group. There are a few other, such as min(), max(), mean() or sum(). We could have used the sum() method directly, but we wouldn’t have had the option of aliasing the resulting column, getting stuck with sum(duration_seconds) for a name. Instead, we use the oddly named agg().