PySpark GroupBy Aggregations: Every Aggregate You Know From T-SQL, Translated
You've been writing GROUP BY aggregations in T-SQL for years. PySpark has all the same aggregate functions — and a few you probably wished SQL Server had. Here's the translation, plus a few patterns that are unique to the distributed world. The Basic Pattern from pyspark.sql