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 a function to replace the "profile" index level with a metadata column #233

Open
ilumsden opened this issue Jan 13, 2025 · 0 comments · May be fixed by #237
Open

Add a function to replace the "profile" index level with a metadata column #233

ilumsden opened this issue Jan 13, 2025 · 0 comments · May be fixed by #237
Assignees
Labels
area-thicket Issues and PRs involving Thicket's core Thicket datastructure and associated classes priority-normal Normal priority issues and PRs type-feature Requests for new features or PRs which implement new features

Comments

@ilumsden
Copy link
Collaborator

When dealing with certain datasets (e.g, a collection of profiles per MPI rank), it can be useful to replace the "profile" index level with data from the metadata table (e.g., MPI rank). Right now, we can sort-of do this with GroupBy.agg(...), but it would be nicer to have dedicated functionality for this.

A new function for this would behave along these lines:

  1. Take the name of a metadata column as input
  2. Check if all the values in the metadata column are unique (equivalent to checking if every profile has an unique metadata value)
  3. Copy the metadata column into the performance DataFrame
  4. Replace the "profile" index level with the copied metadata column
  5. Update the row index in the metadata table
@ilumsden ilumsden added area-thicket Issues and PRs involving Thicket's core Thicket datastructure and associated classes priority-normal Normal priority issues and PRs type-feature Requests for new features or PRs which implement new features labels Jan 13, 2025
@michaelmckinsey1 michaelmckinsey1 linked a pull request Jan 23, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-thicket Issues and PRs involving Thicket's core Thicket datastructure and associated classes priority-normal Normal priority issues and PRs type-feature Requests for new features or PRs which implement new features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants