---
title: "Aggregate"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/data/aggregate
markdown: https://docs.nodetool.ai/nodes/nodetool/data/aggregate.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/data/aggregate.md
---

# Aggregate

**Type:** `nodetool.data.Aggregate`

**Namespace:** `nodetool.data`

## Description

Aggregate dataframe by one or more columns.
    aggregate, groupby, group, sum, mean, count, min, max, std, var, median, first, last

    Use cases:
    - Prepare data for aggregation operations
    - Analyze data by categories
    - Create summary statistics by groups

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| dataframe | `dataframe` | The DataFrame to group. | `{"type":"dataframe","uri":"","asset_id":null,"d...` |
| columns | `str` | Comma-separated column names to group by. | `` |
| aggregation | `str` | Aggregation function: sum, mean, count, min, max, std, var, median, first, last | `sum` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `dataframe` |  |

## Related Nodes

Browse other nodes in the [nodetool.data](./) namespace.
