On 20/07/2020 06:11, Ricky Teachey wrote:
On Sun, Jul 19, 2020 at 9:53 PM Stephan Hoyer <sho...@gmail.com> wrote:
One use case that comes up in xarray and pandas is support for indicating
indexing "modes". For example, when indexing with floating point numbers
it's convenient to be able to opt-in to approximate indexing, e.g.,
something like:
array.loc[longitude, latitude, method='nearest', tolerance=0.001]


Thanks to those who pointed out that using kwargs to specify modes of key
management is an obvious use case.

Ironically that example pushes me back to -1. It may look a lot like xarray and pandas working, but that just means it should be in xarray and/or pandas. It doesn't feel at all right for regular Python to be muddling indices and modal parameters to something that isn't a function call like that.

--
Rhodri James *-* Kynesim Ltd
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/Q6ZF746AJLZURKSLUGTIXWEQLUDMEQ2D/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to