-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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 NDFrame.filter to .select? #26642
Comments
I would agree with the naming scheme. So is your proposal to deprecate both with a warning for filter that it will eventually become select? |
def filter(self, items=None, like=None, regex=None, axis=None):
warnings.warn(..., FutureWarning)
return self.select(items=items, like=like, regex=regex, axis=axis) |
I've made a PR on this, see #26866, There are some things I don't like in the current signature though:
|
Thinking a bit more: most of the functionality of This would be more focused and we`d avoid having similar functionality in different methods. |
Yea there is a ton of overlap between all of these items. I like your proposal for |
As I also commented on the PR, I personally like having more "complex" behaviour (things that need keyword arguments, like the regex) in a method like |
I've made a PR to remove
NDFrame.select
, see #26641. That method was deprecated in 0.21.There was a discussion in #12401, where many participants agreed that removing the old
select
and havingNDFrame.filter
renamed toNDFrame.select
would be a better naming scheme. I agree on that for several of the reasons mentioned in the thread.What do people think of such a name change and a related deprecation of the name (not functionality)
.filter
?The text was updated successfully, but these errors were encountered: