<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLDataTable/init()",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML11MLDataTableVACycfc"
  },
  "title" : "init()"
}
-->

# init()

Creates an empty table containing no rows or columns.

```
init()
```

## Discussion

Use this initializer to create an empty data table. Then, you add data
columns with [`addColumn(_:named:)`](/documentation/CreateML/MLDataTable/addColumn(_:named:)-kkbw), untyped columns
with [`addColumn(_:named:)`](/documentation/CreateML/MLDataTable/addColumn(_:named:)-9cb24), or another table with
[`append(contentsOf:)`](/documentation/CreateML/MLDataTable/append(contentsOf:)).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)