arrow_to_numpy#

lsst.daf.butler.formatters.parquet.arrow_to_numpy(arrow_table: pa.Table) np.ndarray | np.ma.MaskedArray#

Convert a pyarrow table to a structured numpy array.

Parameters#

arrow_tablepyarrow.Table

Input arrow table.

Returns#

arraynumpy.ndarray or numpy.ma.MaskedArray (N,)

Numpy array table with N rows and the same column names as the input arrow table. Will be masked records if any values in the table are null.