---
title: "grouped(by:_:_:)"
framework: tabulardata
role: symbol
role_heading: Instance Method
path: "tabulardata/dataframeprotocol/grouped(by:_:_:)"
---

# grouped(by:_:_:)

Creates a grouping from three columns of different types.

## Declaration

```swift
func grouped<T0, T1, T2>(by column0: ColumnID<T0>, _ column1: ColumnID<T1>, _ column2: ColumnID<T2>) -> some RowGroupingProtocol where T0 : Hashable, T1 : Hashable, T2 : Hashable

```

## Parameters

- `column0`: A column identifier.
- `column1`: A second column identifier.
- `column2`: A third column identifier.

## See Also

### Creating a Row Grouping by Multiple Columns

- [grouped(by:)](tabulardata/dataframeprotocol/grouped(by:)-4wcw6.md)
- [grouped(by:)](tabulardata/dataframeprotocol/grouped(by:)-6m6to.md)
- [grouped(by:_:)](tabulardata/dataframeprotocol/grouped(by:_:).md)
