jobj_col
The jobj_col
method creates a column containing Java objects.
note
This method is commonly used with new_table
to create tables.
caution
The jobj_col
method is significantly slower than other methods that create columns. When creating a column with data of one type, use the corresponding specialized method (e.g., for ints, use int_col
).
Syntax
jobj_col(columnName, values...)
Parameters
Parameter | Type | Description |
---|---|---|
columnName | String | The name of the new column. |
values | Java.lang.Object... | The column values. |
Returns
A ColumnHolder
.
Example
The following examples use new_table
to create a table with a single column of Java objects named Values
.
from deephaven import new_table
from deephaven.column import jobj_col
result = new_table([
jobj_col("Values", ["a", 1, -5.5])
])
- result