Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 1.34 KB

File metadata and controls

54 lines (35 loc) · 1.34 KB
title int_col

The int_col method creates a column containing Java primitive integer values.

Note

This method is commonly used with new_table to create tables.

Important

Integer columns do not support infinite and not-a-number (NaN) values.

Syntax

int_col(name: str, data: Sequence[int]) -> InputColumn

Parameters

The name of the new column.

The column values. This can be any sequence of compatible data, e.g., list, tuple, ndarray, pandas series, etc.

Returns

An InputColumn.

Example

The following examples use new_table to create a table with a single column of integers named Integers.

from deephaven import new_table
from deephaven.column import int_col

result = new_table([int_col("Integers", [1, 2, 3, 4, 5])])

Related documentation