ArrowNumpySchema¶
-
class
lsst.daf.butler.formatters.parquet.
ArrowNumpySchema
(numpy_dtype: np.dtype)¶ Bases:
object
Wrapper class for a schema for a numpy ndarray.
Parameters: - numpy_dtype :
numpy.dtype
Numpy dtype to convert.
Attributes Summary
schema
Methods Summary
from_arrow
(schema)Convert an arrow schema into an ArrowNumpySchema
.to_arrow_astropy_schema
()Convert to an ArrowAstropySchema
.to_arrow_schema
()Convert to a pyarrow.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.ArrowNumpySchema¶ Convert an arrow schema into an
ArrowNumpySchema
.Parameters: - schema :
pyarrow.Schema
Pyarrow schema to convert.
Returns: - numpy_schema :
ArrowNumpySchema
- schema :
-
to_arrow_astropy_schema
() → lsst.daf.butler.formatters.parquet.ArrowAstropySchema¶ Convert to an
ArrowAstropySchema
.Returns: - astropy_schema :
ArrowAstropySchema
- astropy_schema :
-
to_arrow_schema
() → pyarrow.lib.Schema¶ Convert to a
pyarrow.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 :
- numpy_dtype :