Skip to main content
Version: Python

double_col

The double_col method creates a column containing Java primitive double values.

note

This method is commonly used with `new_table`` to create tables.

Syntax

double_col(columnName, values...)

Parameters

ParameterTypeDescription
columnNameString

The name of the new column.

valuesdouble...

The column values.

Returns

A ColumnHolder.

Example

The following examples use `new_table`` to create a table with a single column of doubles named Doubles.

from deephaven import new_table
from deephaven.column import double_col

result = new_table([
double_col("Doubles", [0.1, 0.2, 0.3])
])