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.
Syntax
string_col(columnName, values...)
Parameters
Parameter | Type | Description |
---|---|---|
columnName | String | The name of the new column. |
values | Java.lang.String... | The column values. |
Returns
A ColumnHolder
.
Example
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"])
])
- result