cf.Field.remove_item

Field.remove_item(item=None, **kwargs)[source]

Remove and return a domain item from the field.

An item is either a dimension coordinate, an auxiliary coordinate, a cell measure or a transform object of the domain.

The item may be selected with the keyword arguments. If no unique item can be found then no items are removed and None is returned.

Parameters :
item, kwargs : optional

Select the item which would be selected by this call of the field’s item method: f.item(item, **kwargs). See cf.Field.item for details.

Returns :
out :

The removed item, or None if no unique item could be found.

Examples

Previous topic

cf.Field.remove_data

Next topic

cf.Field.remove_items

This Page