new_table
The new_table method creates an in-memory table from a list of columns. Each column must have an equal number of elements.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| cols | InputColumn | Columns are created using the following methods: |
Returns
An in-memory table.
Examples
The following example creates a table with one column of three integer values.
The following example creates a table with a double and a string column.