whylogs.migration.converters#

Module Contents#

Functions#

read_v0_to_view(→ whylogs.core.DatasetProfileView)

v0_to_v1_view(→ whylogs.core.DatasetProfileView)

v1_to_dataset_profile_message_v0(...)

Attributes#

whylogs.migration.converters.EMPTY_FI_SKETCH: bytes#
whylogs.migration.converters.EMPTY_HLL: bytes#
whylogs.migration.converters.EMPTY_KLL: bytes#
whylogs.migration.converters.EMPTY_THETA: bytes#
whylogs.migration.converters.logger#
whylogs.migration.converters.PARTITION_ID = 'segp_id'#
whylogs.migration.converters.PARTITION_NAME = 'segp_name'#
whylogs.migration.converters.PARTITION_HAS_FILTER = 'segp_filter'#
whylogs.migration.converters.SEGMENT_ON_COLUMN = 'segp_col'#
whylogs.migration.converters.SEGMENT_ON_COLUMNS = 'segp_cols'#
whylogs.migration.converters.read_v0_to_view(path: str, allow_partial: bool = False) whylogs.core.DatasetProfileView#
Parameters
  • path (str) –

  • allow_partial (bool) –

Return type

whylogs.core.DatasetProfileView

whylogs.migration.converters.v0_to_v1_view(msg: whylogs.core.proto.v0.DatasetProfileMessageV0, allow_partial: bool = False) whylogs.core.DatasetProfileView#
Parameters
  • msg (whylogs.core.proto.v0.DatasetProfileMessageV0) –

  • allow_partial (bool) –

Return type

whylogs.core.DatasetProfileView

whylogs.migration.converters.v1_to_dataset_profile_message_v0(profile_view: whylogs.core.DatasetProfileView, segment: Optional[whylogs.core.segment.Segment], partition: Optional[whylogs.core.segmentation_partition.SegmentationPartition]) whylogs.core.proto.v0.DatasetProfileMessageV0#
Parameters
Return type

whylogs.core.proto.v0.DatasetProfileMessageV0