Reshapes
← Relifold documentation

Transpose

Swap two nesting levels in a keyed mapping.

Transpose pivots two declared levels of nested keyed data without model inference.

Worked example

Transpose(
    name="categories-by-attribute",
    input_spaces=("attributes-by-category",),
    output_space="categories-by-attribute",
    levels=(0, 1),
    key="attribute",
)
ParameterDefaultMeaning
input_spacesrequiredThe Space or Spaces read by the reshape.
namerequiredA stable node name shown in the pipeline and session.
output_spacerequiredThe Space receiving the transposed rows.
levels(0, 1)The two nesting depths to swap.
keyidField used to identify generated rows.

Output

The same nested information with the selected levels exchanged.

Design guidance

Use Transpose only for nested keyed mappings; ordinary tabular pivots may use Apply.