Closed shoyer closed 7 years ago
Never mind, I see that mask
does this.
It's called mask
in dfply since filter
is reserved in python. It's in there in the subset.py
file.
Technically filter
is just a builtin function -- you can certainly override it if desired (though that is often considered poor style).
Yeah, "reserved" was not a correct choice of word. I am trying to avoid overriding python's built-in functions so that people can use from dfply import *
without any rude surprises.
This function is pretty essential for data analysis, and selecting by value is also one of the least ergonomic operations in pandas, so this would provide real value.