Rename a Pipeline Node
Renames a single node and rewires all dependency edges that referenced the old name to the new name. This is the canonical way to resolve name collisions before set operations.
p (Pipeline): The
pipeline.
old_name (String): The current name
of the node.
new_name (String): The desired new
name.
A new pipeline with the node renamed.
p |> rename_node("model_r", "model_r_v2")