19 Jul
2020
19 Jul
'20
10:39 p.m.
On Sun, Jul 19, 2020 at 10:24:42PM -0400, Jonathan Goble wrote:
IMHO the above example would be better spelled as:
array.loc.get(longitude, latitude, method='nearest', tolerance=0.001)
One of the use-cases for this is for type hints, where you cannot use method calls. So that's right out. Minor issues with "use a method call" include that it makes using slices difficult, as slice syntax is not legal in a method call, and that item assignment and deletion are awkward (you have to use a setter and deleter method, like some sort of ~~caveman~~ Java developer, instead of writing what you mean). -- Steven