<!--
{
  "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/MLUntypedColumn/init(sequences:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Create ML",
      "CreateML"
    ],
    "preciseIdentifier" : "s:8CreateML15MLUntypedColumnV9sequencesA2C_tcfc"
  },
  "title" : "init(sequences:)"
}
-->

# init(sequences:)

Creates a new column of machine learning sequences by converting the
elements of another column.

```
init(sequences: MLUntypedColumn)
```

## Parameters

`sequences`

A column with elements that are convertible to Create ML sequences.

## Return Value

A new untyped column of doubles; otherwise an invalid column
if any element of the given column cannot be converted to
[`MLDataValue.SequenceType`](/documentation/CreateML/MLDataValue/SequenceType).

## Discussion

Use this initializer to create a column of sequences from another
column. As an example, to create a column with this initializer, first
start with a column that is convertible to sequences.

```swift
let intSequenceString = "[1, 2, 3]"
let intSequenceString2 = "[4, 5, 6]"
let stringsColumn = MLUntypedColumn([intSequenceString, intSequenceString2])

print(stringsColumn)
/* Prints...
 ValueType: String
 Values:        [[1, 2, 3], [4, 5, 6]]
 */
```

Then use [`init(sequences:)`](/documentation/CreateML/MLUntypedColumn/init(sequences:)) to convert the column to a
column of sequences.

```swift
let sequenceColumn = MLUntypedColumn(sequences: stringsColumn)
print(sequenceColumn)
/* Prints...
 ValueType: Sequence
 Values:        [[DataValue(1), DataValue(2), DataValue(3)],
                 [DataValue(4), DataValue(5), DataValue(6)]]
 */
```

---

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)