pandas_to_arrow

lsst.daf.butler.formatters.parquet.pandas_to_arrow(dataframe: pd.DataFrame, default_length: int = 10) pa.Table

Convert a pandas dataframe to an arrow table.

Parameters:
dataframepandas.DataFrame

Input pandas dataframe.

default_lengthint, optional

Default string length when not in metadata or can be inferred from column.

Returns:
arrow_tablepyarrow.Table

Converted arrow table.