Skip to content

Feature Request: pd.DataFrame drop method to include function support #17129

Closed
@jolespin

Description

@jolespin

I think it would be useful if the pd.DataFrame's drop method could support a lambda or function 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:

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions