-
-
Notifications
You must be signed in to change notification settings - Fork 403
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
Implement .transform method to apply dim transforms across containers #3932
Comments
This is an interesting proposal, my main concern is that aggregate generally retains all vdims and it's not clear how it would know to drop 'a' but keep 'z' in your example. Originally I had envisioned adding another method for this and was hoping to call it |
The spelling for apply would have been:
i.e. you'd tell it to create a new dimension or overwrite an existing one using the keyword argument. |
I like that API and I think we could build on that. How about we call it ProposalAPI
Further issuesWe can only handle dim_transforms with scalar output in this way, unless we want to specify an argument that takes the function signature. The current ExampleLet me outline with the following example:
Now,
and
So far, so good.
Hence,
returns Then
My proposal can almost be implemented with some simple monkey patching already (modulo the insertion into the existing hv.Dataset):
|
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I think it could be very much worthwhile to implement data aggregation using
dim
transforms from the ground up (i.e. in each interface). This would give us any sort of multidimensional transforms on HexTiles such as proposed in #3636 etc. for free.The API would not be changed, but the following would become possible:
yielding (note how the vdims
z
,a
are condensed into one vdimz
by the summationI'm happy to work on this but wanted to hear what your thoughts are first.
The text was updated successfully, but these errors were encountered: