Aggregation

Learn how to aggregate data in Altair.

Aggregation involves summarizing data using a specific calculation, such as mean, median, sum, count, etc. Altair provides several built-in aggregation functions, including count, sum, mean, median, min, max, and stddev.

How to aggregate values in Altair

Altair provides the following two ways to aggregate values:

  • At the encoding level, we use the aggregate function directly in the field to aggregate. We use the competition dataset.

Get hands-on with 1200+ tech skills courses.