deephaven.arrow
This module supports conversions between pyarrow tables and Deephaven tables.
-
read_feather(path)[source]
Reads an Arrow feather file into a Deephaven table.
- Parameters:
path (str) – the file path
- Return type:
Table
- Returns:
a new table
- Raises:
DHError –
-
to_arrow(table, cols=None)[source]
Creates a pyarrow table from a Deephaven table.
- Parameters:
table (Table) – the Deephaven table
cols (Optional[Sequence[str]]) – the table column names, default is None which means including all columns
- Return type:
Table
- Returns:
a pyarrow table
- Raises:
DHError –
-
to_table(pa_table, cols=None)[source]
Creates a Deephaven table from a pyarrow table.
- Parameters:
pa_table (pa.Table) – the pyarrow table
cols (Optional[Sequence[str]]) – the pyarrow table column names, default is None which means including all columns
- Return type:
Table
- Returns:
a new table
- Raises:
DHError –