short_col
The short_col
method creates a column containing Java primitive short values.
note
This method is commonly used with new_table
to create tables.
Syntax
short_col(columnName, values...)
Parameters
Parameter | Type | Description |
---|---|---|
columnName | String | The name of the new column. |
values | short... | The column values. |
Returns
A ColumnHolder
.
Example
The following examples use new_table
to create a table with a single column of shorts named Shorts
.
from deephaven import new_table
from deephaven.column import short_col
result = new_table([
short_col("Shorts", [86, 78, 41, 54, 20])
])
- result