Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add .filter method #41

Merged
merged 2 commits into from
Dec 22, 2021
Merged

Add .filter method #41

merged 2 commits into from
Dec 22, 2021

Conversation

andersy005
Copy link
Member

@andersy005 andersy005 commented Dec 22, 2021

@andersy005 andersy005 added the enhancement New feature or request label Dec 22, 2021
@andersy005
Copy link
Member Author

@mgrover1, with this PR, you should be able to do the following in NCAR/esds-funnel#60

ecs_collection.filter(by='key', func=lambda x: 'piControl' in x)

@andersy005 andersy005 merged commit 02f4fa0 into main Dec 22, 2021
@andersy005 andersy005 deleted the add-filter branch December 22, 2021 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add keyfilter, valfilter and itemfilter methods to the xcollection.Collection
1 participant