Reshapes
← Relifold documentationTranspose
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",
)| Parameter | Default | Meaning |
|---|---|---|
input_spaces | required | The Space or Spaces read by the reshape. |
name | required | A stable node name shown in the pipeline and session. |
output_space | required | The Space receiving the transposed rows. |
levels | (0, 1) | The two nesting depths to swap. |
key | id | Field 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.