DataViewSchema Class

Definition

Represents the schema of an IDataView or an DataViewRow. The schema is a collection of DataViewSchema.Column.

[System.Diagnostics.DebuggerTypeProxy(typeof(Microsoft.ML.SchemaDebuggerProxy))]
public sealed class DataViewSchema : System.Collections.Generic.IEnumerable<Microsoft.ML.DataViewSchema.Column>, System.Collections.Generic.IReadOnlyCollection<Microsoft.ML.DataViewSchema.Column>, System.Collections.Generic.IReadOnlyList<Microsoft.ML.DataViewSchema.Column>
Inheritance
DataViewSchema
Attributes
Implements

Properties

Count

Number of columns in the schema.

Item[Int32]

Get the column by index.

Item[String]

Get the column by name. Throws an exception if such column does not exist. Note that if multiple columns exist with the same name, the one with the biggest index is returned. The other columns are considered 'hidden', and only accessible by their index.

Methods

GetColumnOrNull(String)

Get the column by name, or null if the column is not present.

GetEnumerator()
ToString()

Explicit Interface Implementations

Applies to

Product Versions
ML.NET 1.0.0, 1.1.0, 1.2.0, 1.3.1, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 2.0.0, 3.0.0