Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.45 KB

File metadata and controls

55 lines (36 loc) · 1.45 KB
title pyobj_col

The pyobj_col method creates a column containing Python objects.

Note

This method is commonly used with new_table to create tables.

Caution

The pyobj_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

pyobj_col(name: str, data: Sequence[Any]) -> InputColumn

Parameters

The name of the new column.

The column values. Must be a sequence of Python objects.

Returns

An InputColumn.

Example

The following examples use new_table to create a table with a single column of Python objects named Values.

from deephaven import new_table
from deephaven.column import pyobj_col

result = new_table([pyobj_col("Values", ["a", 1, -5.5])])

Related documentation