Contents

MLDataColumn

A column of typed values in a data table.

Declaration

struct MLDataColumn<Element> where Element : MLDataValueConvertible

Overview

A column is a homogenous collection of data values, similar to an Array. Columns are the main components of an MLDataTable and are designed to efficiently scale with large data sets.

Typically you use MLDataColumn, the typed equivalent to MLUntypedColumn, to work directly with the column’s element type. A data column has extra math and statistics functionality when its element type is Int or Double.

Topics

Creating a data column

Creating a data column by converting another column

Getting the number of elements

Getting an element

Appending to a data column

Duplicating a column

Sorting elements to generate a column

Transforming elements to generate a column

Masking elements to generate a column

Discarding elements to generate a column

Selecting elements to generate a column

Filling in missing elements to generate a column

Evaluating elements to generate a column

Combining columns

Combining columns to generate a column

Combining a column with a value to generate a column

Combining a value with a column to generate a column

Comparing columns

Comparing columns to generate a column of booleans

Comparing a column with a value to generate a column of booleans

Comparing a value with a column to generate a column of booleans

Combining columns of booleans to generate a column of booleans

Getting the min and max element values

Getting sum, mean, and standard deviation values

Visualizing a column

Getting a description of a data column

Handling data column errors

Supporting types

Default Implementations

See Also

Adding columns