Skip to main content
Version: Python

byte_col

The byte_col method creates a column containing Java primitive byte values.

note

This method is commonly used with new_table to create tables.

Syntax

byte_col(columnName, values...)

Parameters

ParameterTypeDescription
columnNameString

The name of the new column.

valuesbyte...

The column values.

Returns

A ColumnHolder.

Example

The following examples use new_table to create a table with a single column of bytes named Bytes.

from deephaven import new_table
from deephaven.column import byte_col

result = new_table([
byte_col("Bytes", [1, 2, 3, 4])
])