DVector.rename_segment# DVector.rename_segment(mapping)[source]# Rename segments in both the segmentation definition and the associated data. Parameters: mapping (dict[str, str]) – A dictionary mapping old segment names (keys) to new segment names (values). Return type: cb.DVector