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#
- dataframe
pandas.DataFrame Input pandas dataframe.
Returns#
- array
numpy.ndarrayornumpy.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.
- dataframe