-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Feature Request: pd.DataFrame drop method to include function support #17129
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
Comments
@jolespin : Separate out into another issue, as it will be easier for us to organize. |
Regarding your request for a |
Working on it now! How can I test the code to see if it works? I need to add a few things. https://github.com/jolespin/pandas/edit/master/pandas/core/generic.py |
@jolespin : Install your branch and then run whatever code you used in this issue. The following section on our website here might be useful for instructions: https://pandas.pydata.org/pandas-docs/stable/contributing.html |
Appears there hasn't been much activity or community support for this feature in a while so closing. Happy to reopen if there's renewed support |
I think it would be useful if the
pd.DataFrame
'sdrop
method could support alambda
orfunction
that one can use as a filter such as below:Also, on a side note I noticed that masking requires an extra step in the newest pandas in that it requires the mask to be converted to an array and then to a boolean. Not sure if that warrants an issue in itself but just wanted to mention that. It is also shown below:
The text was updated successfully, but these errors were encountered: