Closed
Description
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: