navis 1.4.0
  • Install
  • Quickstart
  • Tutorials
  • API
  • Changelog
  • Github
  • Ecosystem
  • Site
    • Page
        • navis.NeuronList.remove_duplicates
          • NeuronList.remove_duplicates()

    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]

    Back to top

    Source

    © Copyright 2018, Philipp Schlegel.
    Created using Sphinx 5.3.0.