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_table
astropy.table.Table
Input astropy table.
- astropy_table
Attributes Summary
Methods Summary
from_arrow
(schema)Convert an arrow schema into a ArrowAstropySchema.
Convert to an
ArrowNumpySchema
.Convert to an arrow schema.
Convert to a DataFrameSchema.
Attributes Documentation
- schema¶
Methods Documentation
- classmethod from_arrow(schema: Schema) ArrowAstropySchema ¶
Convert an arrow schema into a ArrowAstropySchema.
- Parameters:
- schema
pyarrow.Schema
Input pyarrow schema.
- schema
- Returns:
- astropy_schema
ArrowAstropySchema
Converted arrow astropy schema.
- astropy_schema
- to_arrow_numpy_schema() ArrowNumpySchema ¶
Convert to an
ArrowNumpySchema
.- Returns:
- arrow_numpy_schema
ArrowNumpySchema
Converted arrow numpy schema.
- arrow_numpy_schema
- to_arrow_schema() Schema ¶
Convert to an arrow schema.
- Returns:
- arrow_schema
pyarrow.Schema
Converted pyarrow schema.
- arrow_schema
- to_dataframe_schema() DataFrameSchema ¶
Convert to a DataFrameSchema.
- Returns:
- dataframe_schema
DataFrameSchema
Converted dataframe schema.
- dataframe_schema