---
title: "intersect(_:of:)"
framework: createml
role: symbol
role_heading: Instance Method
path: "createml/mldatatable/intersect(_:of:)"
---

# intersect(_:of:)

Creates a subset of the table by including the rows that contain any of the given values in the given column.

## Declaration

```swift
func intersect<T>(_ values: T..., of columnNamed: String) -> MLDataTable where T : MLDataValueConvertible
```

## Parameters

- `values`: The values to include from the new table.
- `columnNamed`: The name of the column to search for included values.

## Return Value

Return Value A new data table.

## See Also

### Selecting rows

- [subscript(_:)](createml/mldatatable/subscript(_:)-7h4j3.md)
- [subscript(_:)](createml/mldatatable/subscript(_:)-5le8a.md)
- [prefix(_:)](createml/mldatatable/prefix(_:).md)
- [suffix(_:)](createml/mldatatable/suffix(_:).md)
