Skip to main content
Namespace: Ans.DataProcessing.operators.scoping

Summary

Rescopes/splits a fields container to correspond to a scopings container. Each field from the input container is rescoped using each scoping from the scopings container, creating a cartesian product of rescoped fields. available inputs: field_or_fields_container (FieldsContainer, Field), scopings_container (ScopingsContainer), keep_empty_fields (bool) (optional) available outputs: fields_container (FieldsContainer)

Example

Class Information

Inputs

field_or_fields_container

Fields container to rescope, or a single field (which will be converted to a container) Type: LinkableInput

scopings_container

Container with target scopings for rescoping operations Type: LinkableInput

keep_empty_fields

Whether to keep fields that become empty after rescoping. Default is false. Type: LinkableInput

Outputs

fields_container

Fields container with rescoped fields, combining labels from input fields and scopings Type: LinkableOutput

Constructors

Constructor

Constructor

Parameters:
  • field_or_fields_container (object)
  • scopings_container (object)
  • keep_empty_fields (object)
  • config (OperatorConfig)

Constructor

Parameters:
  • config (OperatorConfig)

Methods

Properties

inputs

Type: InputSpec

outputs

Type: OutputSpec

defaultConfig

Type: Config