You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cleanup API for methods changing/dropping Array labels/values vs labels in Axis/AxisCollection #783
Functions to change labels and values are inconsistent for LArray, Axis and AxisCollection.
e.g. Array.set_labels can accept both a mapping and functions, but the same functionality is split in two functions for values: apply and apply_map; the functions do not have cohesive names, etc.
Array.apply_map and Axis.replace/Array.set_labels/AxisCollection.set_labels
All these functions provide some way to replace some values by some other values on their respective level. We should:
find cohesive names for the functions. For examples:
Array.replace_labels, Array.replace_values, Axis.replace_labels, AxisCollection.replace_labels
or
Array.change_labels, Array.change_values, Axis.change_labels, AxisCollection.change_labels
or
Array.set_labels, Array.set_values, Axis.set_labels, AxisCollection.set_labels,
(Array.replace_values/change_values/set_values) would replace both Array.apply and Array.apply_map
changed the title [-]synchronize LArray.apply_map and Axis.replace/LArray.set_labels/AxisCollection.set_labels[/-][+]cleanup API for LArray vs Axis/AxisCollection[/+]on Jun 24, 2019
changed the title [-]cleanup API for LArray vs Axis/AxisCollection[/-][+]cleanup API for methods changing LArray labels/values vs labels in Axis/AxisCollection[/+]on Jun 24, 2019
changed the title [-]cleanup API for methods changing LArray labels/values vs labels in Axis/AxisCollection[/-][+]cleanup API for methods changing/dropping Array labels/values vs labels in Axis/AxisCollection[/+]on Oct 8, 2021
Activity
[-]synchronize LArray.apply_map and Axis.replace/LArray.set_labels/AxisCollection.set_labels[/-][+]cleanup API for LArray vs Axis/AxisCollection[/+][-]cleanup API for LArray vs Axis/AxisCollection[/-][+]cleanup API for methods changing LArray labels/values vs labels in Axis/AxisCollection[/+][-]cleanup API for methods changing LArray labels/values vs labels in Axis/AxisCollection[/-][+]cleanup API for methods changing/dropping Array labels/values vs labels in Axis/AxisCollection[/+]