string_col
The string_col function creates a column containing Java String values.
Note
Pass the column that string_col returns to new_table to create a table.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| name | str | The name of the new column. |
| data | Sequence | The column values, as |
Returns
An InputColumn.
Example
The following example uses new_table to create a table with a single column of strings named Strings. string_col does not parse the values, so "3.14" stays a string and is not converted to a number.