Skip to content

MulitpleSeries.remove() should take list instead of just one label at a time #676

@khider

Description

@khider

Is your feature request related to a problem? Please describe.
Right now, .remove requires only one label at a time. In this case, I was trying to create multiple series from the original object based on a criteria stored in another list. I was trying to compute spectral slopes and encountered a lot of NaNs so wanted to remove these series from the object so I could create a map

Describe the solution you'd like
It would be nice to either pass a list of labels or a list of indices to the function to remove multiple series from the object at a time

Describe alternatives you've considered
Right now, I'm first identifying the labels from the nan indices in a numpy array, getting the labels and then removing them one by one.

Additional context

Image

Would be nice to just past the list of indices in idx_nan.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions