DataFrame.groupBy DataFrame.groupBy( *cols: pyspark_dubber.sql.expr.Expr | str, ) PySpark API Reference Incompatibility Note Currently only column names are supported for grouping, column expressions are not supported.