1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Introduction to PySpark

Connected

अभ्यास

Complex Aggregations

To get you familiar with more of the built in aggregation methods, let's do a slightly more complex aggregation! The goal is to merge all these commands into a single line.

Remember, a SparkSession called spark is already in your workspace, along the Spark DataFrame salaries_df.

निर्देश

100 XP
  • Calculate the average salaries of large US companies using the "salary_in_usd" column.
  • Calculate the total salaries of large US companies.