kieferk / dfply

dplyr-style piping operations for pandas dataframes
GNU General Public License v3.0
890 stars 103 forks source link

filter #11

Closed shoyer closed 7 years ago

shoyer commented 7 years ago

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.

shoyer commented 7 years ago

Never mind, I see that mask does this.

kieferk commented 7 years ago

It's called mask in dfply since filter is reserved in python. It's in there in the subset.py file.

shoyer commented 7 years ago

Technically filter is just a builtin function -- you can certainly override it if desired (though that is often considered poor style).

kieferk commented 7 years ago

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.