<div dir="ltr"><div>not off topic at all; there are several matters of naming that I am not at all settled on yet, and I don't think it is unimportant.<br><br>indeed, those are closely related functions, and I wasn't aware of them yet, so that's some welcome additional perspective. The mathematica function differs in that the keys are always function of the values; as per your example as well. My proposed interface does not have that constraint, but that behavior is of course easily obtained by something like group_by(mapping(values), values).<br>
<br>indeed grpstats also has a lot of overlap, though it does not have the same generality as my proposal.<br><br>its interesting to wonder where one gets ones ideas as to how to call what. ive never worked with SQL much; I suppose I picked up this naming by working with LINQ. I rather like group_by; it is more suitable to the generality of the operations supported by the group_by object than something like grpstats. The majority of my applications for grouping have nothing whatsoever to do with statistics.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Jan 26, 2014 at 8:44 PM, Alan G Isaac <span dir="ltr"><<a href="mailto:alan.isaac@gmail.com" target="_blank">alan.isaac@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My comment is just on the name.<br>
<div class="im">I'd expect something named `groupby`<br>
</div>to behave essentially like Mathematica's `GatherBy` command.<br>
<a href="http://reference.wolfram.com/mathematica/ref/GatherBy.html" target="_blank">http://reference.wolfram.com/mathematica/ref/GatherBy.html</a><br>
<br>
I think you are after something more like Matlab's grpstats:<br>
<a href="http://www.mathworks.com/help/stats/grpstats.html" target="_blank">http://www.mathworks.com/help/stats/grpstats.html</a><br>
<br>
Perhaps the implicit reference to SQL justifies the name...<br>
<br>
Sorry if this seems off topic,<br>
Alan Isaac<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
</div></div></blockquote></div><br></div>