| title | string_col |
|---|
The string_col method creates a column containing string object values.
Note
This method is commonly used with new_table to create tables.
string_col(name: str, data: Sequence[str]) -> InputColumnThe name of the new column.
The column values. This can be any sequence of compatible data, e.g., list, tuple, ndarray, pandas series, etc.
An InputColumn.
The following examples use new_table to create a table with a single column of strings named Strings.
from deephaven import new_table
from deephaven.column import string_col
result = new_table([string_col("Strings", ["Deephaven", "3.14", "Community"])])