navis.NeuronList.remove_duplicates¶
- NeuronList.remove_duplicates(key='name', keep='first', inplace=False)[source]¶
Remove duplicate neurons from list.
- Parameters:
key (str | list, optional) – Attribute(s) by which to identify duplicates. In case of multiple, all attributes must match to flag a neuron as duplicate.
keep (str) – Which of the duplicated neurons to keep.
inplace (bool, optional) – If False will return a copy of the original with duplicates removed.
- Return type:
Optional
[NeuronList
]