[df] Handle containers in RHist* filling - #22899
Open
hahnjo wants to merge 3 commits into
Open
Conversation
Test Results0 tests 0 ✅ 0s ⏱️ Results for commit 613e0bd. ♻️ This comment has been updated with latest results. |
Contributor
|
Hi! Thanks, this feature is what I was looking for when trying to switch my code from Histo to Hist. Giovanni |
Member
Author
|
Hi @gpetruc
Yes, the support should be a superset of what Histo can do, notably for nested collections. Weight columns will follow the same rules as value columns wrt broadcasting. |
It abstracts the loop when Exec'uting with data containers, in the following commit for RHist*FillHelper and in the future for the other FillHelpers.
As for the existing Histo actions, the sizes of all containers must match while scalars are broadcasted. As an extension, this works recursively, so nested vectors are handled one level at a time.
This reduces repeated arguments that must be consistent.
hahnjo
force-pushed
the
hist-df-containers
branch
from
July 28, 2026 14:29
613e0bd to
ecef742
Compare
RHist fillingRHist* filling
hahnjo
marked this pull request as ready for review
July 28, 2026 14:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As for the existing Histo actions, the sizes of all containers must match while scalars are broadcasted. As an extension, this works recursively, so nested vectors are handled one level at a time.