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

Issue 937 #967

Merged
merged 4 commits into from
May 9, 2024
Merged

Issue 937 #967

merged 4 commits into from
May 9, 2024

Conversation

wasade
Copy link
Member

@wasade wasade commented May 8, 2024

Fixes #937

This PR expands Table.partition in the following ways:

  • {id: group} can now be provided
  • {group: [list, of, ids]} can now be provided
  • remove_empty=True will drop any empty vectors in resulting partitions
  • ignore_none=True will ignore the None partition which is a collect all for samples without a group associations.

These changes expand the API, but do not break existing default behavior

cc @gregcaporaso

@wasade wasade merged commit cdb7816 into biocore:master May 9, 2024
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expand partiton API
1 participant