Create DataColumn
This section describes ways to create a DataColumn.
API reference: columnOf, toColumn
columnOf
Returns a new column with the given elements. The column type is deduced from the compile-time type of the elements inside. The column name is taken from the name of the variable.
To assign column name explicitly, use the named infix function and replace by with =.
When column elements are columns themselves, it returns a ColumnGroup:
When column elements are DataFrame objects, it returns a FrameColumn:
toColumn
Converts an Iterable of values into a column.
To compute a column type at runtime by scanning through the actual values, enable the Infer.Type option.
To inspect values only for nullability, enable the Infer.Nulls option.
toColumnOf
Converts an Iterable of values into a column of a given type: