pyspark.sql.GroupedData.cogroup

GroupedData.cogroup(other: GroupedData) → PandasCogroupedOps

Cogroups this group with another group so that we can run cogrouped operations.

New in version 3.0.0.

Changed in version 3.4.0: Support Spark Connect.

See PandasCogroupedOps for the operations that can be run.