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_dict : dict [str, numpy.ndarray]

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

Returns:
arrow_table : pyarrow.Table

Converted arrow table.

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