A way to use argmin/argmax inside encoding
See original GitHub issueArgmin/argmax won’t work in encoding
as it involves two fields. We need better syntax for this.
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (15 by maintainers)
Top Results From Across the Web
argmax aggregation and select n biggest values in altair
What I would like is : use the argmax aggregation to take the latest population value rather than the biggest. If I use...
Read more >numpy.argmax() in Python - GeeksforGeeks
argmax () function returns indices of the max element of the array in a particular axis. Syntax : numpy.argmax(array, axis = None, out...
Read more >Aggregation | Vega-Lite
The argmax and argmin operation can be specified in an encoding field definition by setting aggregate to an object with argmax/min describing the...
Read more >Using Numpy's argmax() - KDnuggets
A simple overview of using an often-misunderstood yet useful function in Python: Numpy's argmax(). Read the what, the how, and the why of...
Read more >How does NumPy.argmax () work with Examples - eduCBA
Numpy.argmax() function is used in the Python coding language in order for the system to return the indices of the elements which phase...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
lol you beat me to it. 😃
I’ve
vl.argmin('Acceleration').field('Horsepower')
in the comment box right here. :pI guess one idea would be to have
argmin
andargmax
exist as operations with different semantics, such thatvl.argmin('Acceleration').field('Horsepower')
makes sense in a way thatvl.sum('foo').field('foo')
does not. I think that a separate argmin/argmax design would be easy enough to add to the Vega-Lite API, too.