ArrowAstropySchema

class lsst.daf.butler.formatters.parquet.ArrowAstropySchema(astropy_table: atable.Table)

Bases: object

Wrapper class for a schema for an astropy table.

Parameters:
astropy_tableastropy.table.Table

Input astropy table.

Attributes Summary

schema

Methods Summary

from_arrow(schema)

Convert an arrow schema into a ArrowAstropySchema.

to_arrow_numpy_schema()

Convert to an ArrowNumpySchema.

to_arrow_schema()

Convert to an arrow schema.

to_dataframe_schema()

Convert to a DataFrameSchema.

Attributes Documentation

schema

Methods Documentation

classmethod from_arrow(schema: Schema) ArrowAstropySchema

Convert an arrow schema into a ArrowAstropySchema.

Parameters:
schemapyarrow.Schema

Input pyarrow schema.

Returns:
astropy_schemaArrowAstropySchema

Converted arrow astropy schema.

to_arrow_numpy_schema() ArrowNumpySchema

Convert to an ArrowNumpySchema.

Returns:
arrow_numpy_schemaArrowNumpySchema

Converted arrow numpy schema.

to_arrow_schema() Schema

Convert to an arrow schema.

Returns:
arrow_schemapyarrow.Schema

Converted pyarrow schema.

to_dataframe_schema() DataFrameSchema

Convert to a DataFrameSchema.

Returns:
dataframe_schemaDataFrameSchema

Converted dataframe schema.