DataFrameSchema#
- class lsst.daf.butler.formatters.parquet.DataFrameSchema(dataframe: pd.DataFrame)#
Bases:
objectWrapper class for a schema for a pandas DataFrame.
Parameters#
- dataframe
pandas.DataFrame Dataframe to turn into a schema.
Attributes Summary
Methods Summary
from_arrow(schema)Convert an arrow schema into a
DataFrameSchema.Convert to an ArrowAstropySchema.
Convert to an
ArrowNumpySchema.Convert to an arrow schema.
Attributes Documentation
- schema#
Methods Documentation
- classmethod from_arrow(schema: Schema) DataFrameSchema#
Convert an arrow schema into a
DataFrameSchema.Parameters#
- schema
pyarrow.Schema The pyarrow schema to convert.
Returns#
- dataframe_schema
DataFrameSchema Converted dataframe schema.
- schema
- to_arrow_astropy_schema() ArrowAstropySchema#
Convert to an ArrowAstropySchema.
Returns#
- arrow_astropy_schema
ArrowAstropySchema Converted arrow astropy schema.
- arrow_astropy_schema
- to_arrow_numpy_schema() ArrowNumpySchema#
Convert to an
ArrowNumpySchema.Returns#
- arrow_numpy_schema
ArrowNumpySchema Converted arrow numpy schema.
- arrow_numpy_schema
- dataframe