-
Notifications
You must be signed in to change notification settings - Fork 121
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 DataFrame.arrange
as DataFrame.sort
#777
Conversation
NamingThere's a naming issue I hadn't considered. So far I've named the DataFrame functions to match their Series counterparts:
But this is how I think we should name them instead:
That change would be breaking because However, I hadn't considered "five main verbs" angle. As it stands, this is how that section of "Exploring Explorer" reads:
Now we could just change that bullet to "sort" and be done with it. But each of the other four follows the pattern:
Since we're pre-1.0, I think it's worth breaking As a bonus, there'd be an opportunity for a DataFrame.sort_columns(asc: "column_name") WDYT? /cc @josevalim @philss @cigrainger |
@billylanchantin I'm more inclined to the version we have in this PR - the |
I'm just a dataframe geek that likes to keep an eye on this project, but I don't find |
Thanks @philss! I'm gonna wait for @cigrainger to weigh in too just in case. He was who originally brought up changing the |
Hey! Sorry for weighing in late. I don't think |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<3
Thanks all! If no one objects to Also sorry for the snub, @jcmkk3! I never saw your input. Turns out we commented within 60s of each other 😅 I think |
Renames:
DataFrame.arrange
->DataFrame.sort_by
DataFrame.arrange_with
->DataFrame.sort_with
Closes:
DataFrame.arrange/2
andDataFrame.arrange_with/2
#766