pyspark.sql.DataFrame.groupby

DataFrame.groupby(*cols)

groupby() is an alias for groupBy().

New in version 1.4.