numpy_dict_to_arrow

lsst.daf.butler.formatters.parquet.numpy_dict_to_arrow(numpy_dict: dict[str, np.ndarray]) pa.Table

Convert a dict of numpy arrays to an arrow table.

Parameters:
numpy_dictdict [str, numpy.ndarray]

Dict with keys as the column names, values as the arrays.

Returns:
arrow_tablepyarrow.Table

Converted arrow table.

Raises:
ValueError if columns in numpy_dict have unequal numbers of rows.