ArrowAstropySchema¶
-
class
lsst.daf.butler.formatters.parquet.ArrowAstropySchema(astropy_table: atable.Table)¶ Bases:
objectWrapper class for a schema for an astropy table.
Parameters: - astropy_table :
astropy.table.Table
Attributes Summary
schemaMethods 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: pyarrow.lib.Schema) → lsst.daf.butler.formatters.parquet.ArrowAstropySchema¶ Convert an arrow schema into a ArrowAstropySchema.
Parameters: - schema :
pyarrow.Schema
Returns: - astropy_schema :
ArrowAstropySchema
- schema :
-
to_arrow_numpy_schema() → lsst.daf.butler.formatters.parquet.ArrowNumpySchema¶ Convert to an
ArrowNumpySchema.Returns: - arrow_numpy_schema :
ArrowNumpySchema
- arrow_numpy_schema :
-
to_arrow_schema() → pyarrow.lib.Schema¶ Convert to an arrow schema.
Returns: - arrow_schema :
pyarrow.Schema
- arrow_schema :
-
to_dataframe_schema() → lsst.daf.butler.formatters.parquet.DataFrameSchema¶ Convert to a DataFrameSchema.
Returns: - dataframe_schema :
DataFrameSchema
- dataframe_schema :
- astropy_table :