Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename groupby to group_by #139

Closed
GlenHertz opened this issue Dec 28, 2012 · 8 comments
Closed

Rename groupby to group_by #139

GlenHertz opened this issue Dec 28, 2012 · 8 comments

Comments

@GlenHertz
Copy link
Contributor

Hi,

This is to discuss changing groupby to group_by so that it is consistent with sort_by. I found myself typing the wrong names when switching between the two.

Glen

@johnmyleswhite
Copy link
Contributor

How about going the other way and renaming sort_by to sortby?

@tshort
Copy link
Contributor

tshort commented Dec 29, 2012

+1 for groupby and sortby.
On Dec 28, 2012 5:18 PM, "John Myles White" notifications@github.com
wrote:

How about going the other way and renaming sort_by to sortby?


Reply to this email directly or view it on GitHubhttps://github.com//issues/139#issuecomment-11743035.

@StefanKarpinski
Copy link
Member

I can get behind that. I'll propose it on the Julia side and see how that goes over.

@GlenHertz
Copy link
Contributor Author

I like it.

@johnmyleswhite
Copy link
Contributor

Closed by 54f5431

I renamed sort_by in DataFrames now. We can bikeshed Base Julia later.

@johnmyleswhite
Copy link
Contributor

We should check that this is completely fixed, since Julia is no longer providing a sortby that we could conflict with.

@StefanKarpinski
Copy link
Member

The fact that DataFrames is providing a sortby makes me wonder if sortby(f,v) shouldn't be a shorthand for the new sort(Sort.By(f),v). Perhaps that and sort(f,v) as short for sort(Sort.Lt(f),v). I was trying to get the interface minimal before, but those two additions seem pretty reasonable.

@johnmyleswhite
Copy link
Contributor

I don't understand the new sorting functions yet, but sort(f, d) sounds like it applies f and then sorts. DataFrames does sortby(column, dataframe), which feels quite distinct. I wouldn't burden Base with another name that does something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants