Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use InputColumn to create columns of types not covered in the factory functions (int_col, double_col, etc.) #178

Closed
margaretkennedy opened this issue Mar 23, 2024 · 1 comment
Assignees

Comments

@margaretkennedy
Copy link
Collaborator

margaretkennedy commented Mar 23, 2024

how to use InputColumn to create columns of types not covered in the factory functions (int_col, double_col, etc.)

import numpy as np

from deephaven import dtypes
from deephaven import new_table
from deephaven.column import InputColumn

np_arr = np.array([1, 2, 3], dtype=np.int32)
j_arr = dtypes.array(dtypes.int32, np_arr)
int_arr_col = InputColumn("IntArrCol", dtypes.int32_array, input_data=[j_arr])
t = new_table([int_arr_col])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants