Closed MarcoGorelli closed 11 months ago
FWIW, not being familiar with a gather
method before, I don't find that name necessarily obvious (I would rather guess it does something like "collect").
If you want a name that is already used by other libraries, take
is another obvious candidate, which is being used by pandas, numpy and also the array api (I am not sure if I would find take
necessarily a more obvious name if I would not be familiar with it already (hard to say because I am)).
thanks for your inputs - I'm OK with either, I think they're both improvements over get_rows
looks like R has gather
, but it does something completely different http://statseducation.com/Introduction-to-R/modules/tidy%20data/gather/
maybe take
is better then
@kkraus14 you OK with take
too?
thanks all, let's get this in then
In pandas, there's
.iloc
, but the consortium doesn't want thatPolars has
.gather
pytorch also uses
gather
for this kind of operation:tensorflow has
gather
, which does the same kind of thing https://www.tensorflow.org/api_docs/python/tf/gatherI've not seen
get_rows
anywhere, it's definitely not a common name. Personally I'd rather go with common existing names than create new onesI promise I'll stop bikeshedding after February (when we aim to make the first non-beta release), trying to get it all out before then