dataframely.read_parquet_metadata_collection#

dataframely.read_parquet_metadata_collection(
source: str | Path | IO[bytes] | bytes,
) type[Collection] | None[source]#

Read a dataframely Collection type from the metadata of a parquet file.

Parameters:

source – Path to a parquet file or a file-like object that contains the metadata.

Returns:

The collection that was serialized to the metadata. None if no collection metadata is found or the deserialization fails.