---
title: "append(contentsOf:)"
framework: createml
role: symbol
role_heading: Instance Method
path: "createml/mldatatable/append(contentsof:)"
---

# append(contentsOf:)

Appends the contents of the given data table to the end of this data table.

## Declaration

```swift
mutating func append(contentsOf newTable: MLDataTable)
```

## Parameters

- `newTable`: Another data table to append to the data table.

## Discussion

Discussion important: The columns of both data tables must have the same names and types. Otherwise, the data table will be invalidated.
