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

# exclude(_:of:)

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

## Declaration

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

## Parameters

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

## Return Value

Return Value A new data table.

## See Also

### Discarding rows

- [dropMissing()](createml/mldatatable/dropmissing().md)
- [dropDuplicates()](createml/mldatatable/dropduplicates().md)
- [randomSample(by:seed:)](createml/mldatatable/randomsample(by:seed:).md)
