parq_tools.utils.profile_utils.ProfileMetadata

class parq_tools.utils.profile_utils.ProfileMetadata(description=None, creator=None, author=None, url=None, copyright_year=None, copyright_holder=None)[source]

Metadata for profiling a Parquet file.

This class is used to store metadata that can be included in the profile report. Only selected keys are allowed.

__init__(description=None, creator=None, author=None, url=None, copyright_year=None, copyright_holder=None)

Methods

__init__([description, creator, author, ...])

from_dict(data)

Create a ProfileMetadata instance from a dictionary.

to_dict()

Convert the metadata to a dictionary, omitting empty or None values.

Attributes

author

copyright_holder

copyright_year

creator

description

url

classmethod from_dict(data)[source]

Create a ProfileMetadata instance from a dictionary.

Return type:

ProfileMetadata

to_dict()[source]

Convert the metadata to a dictionary, omitting empty or None values.

Return type:

dict[str, Union[str, int]]