Skip to content

Allow Base.filter to work with all iterators #31188

@pdeffebach

Description

@pdeffebach

This issue is motivated by this discussion on discourse.

My example of when this is a problem is when you are working with a subset of data that, by chance, does not contain missing values. When you work with the full data, you now have missing values and have to use skipmissing at various places in your code. Now all your filter commands are broken.

A heavy and breaking change would be to make Base.filter work on any iterator, and not just arrays. Other alternatives include pointing more people towards Iterators.filter for general use, or special-casing skipmissing so a collect call is included somewhere.

Metadata

Metadata

Assignees

No one assigned

    Labels

    collectionsData structures holding multiple items, e.g. setsmissing dataBase.missing and related functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions