pandas_to_numpy#

lsst.daf.butler.formatters.parquet.pandas_to_numpy(dataframe: pd.DataFrame) np.ndarray | np.ma.MaskedArray#

Convert a pandas dataframe to a numpy recarray.

Parameters#

dataframepandas.DataFrame

Input pandas dataframe.

Returns#

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

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