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

ParameterTypeDescription
namestr

The name of the new column.

dataSequence

The column values, as str values, such as a list, tuple, NumPy array, or pandas Series. None values become null.

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.