---
title: dropDuplicates()
framework: createml
role: symbol
role_heading: Instance Method
path: createml/mluntypedcolumn/dropduplicates()
---

# dropDuplicates()

Creates a subset of the column by removing all duplicate elements.

## Declaration

```swift
func dropDuplicates() -> MLUntypedColumn
```

## Return Value

Return Value A new column.

## Discussion

Discussion note: The new column may not preserve the order of the original column.

## See Also

### Discarding elements to generate an untyped column

- [dropMissing()](createml/mluntypedcolumn/dropmissing().md)
