emmi.pipeline.sample_processors.replace_key

Classes

ReplaceKeySampleProcessor

Utility processor that replaces the key with multiple other keys.

Module Contents

class emmi.pipeline.sample_processors.replace_key.ReplaceKeySampleProcessor(source_key, target_keys)

Bases: ksuit.data.SampleProcessor

Utility processor that replaces the key with multiple other keys.

Parameters:
  • source_key (str) – Key to be replaced.

  • target_keys (set[str]) – List of keys where source_key should be replaced in.

source_key
target_keys