

def without_labels(self, labels):
    'A new landmark group that excludes certain labels\n        label.\n\n        Parameters\n        ----------\n        labels : `str` or `list` of `str`\n            Labels that should be excluded in the returned landmark group.\n\n        Returns\n        -------\n        landmark_group : :map:`LandmarkGroup`\n            A new landmark group with the same group label but containing all\n            labels except the given label.\n        '
    if isinstance(labels, str):
        labels = [labels]
    labels_to_keep = list(set(self.labels).difference(labels))
    return self._new_group_with_only_labels(labels)

dataset/ETHPy150Open menpo/menpo/menpo/landmark/base.py LandmarkGroup.without_labels/VarMisuse@53/209 `labels_to_keep`->`labels`