I would like to select a subset of a data frame that satisfies several conditions on several lines. I know that I can do this sequentially: first select the subset that corresponds to the first condition, then part of those that correspond to the second condition, etc., but it looks like it should be completed in one step. It seems like this should work, but no. Apparently, it works the same as in implementations of other DataFrame languages. Any thoughts?
using DataFrames df = DataFrame() df[:A]=[ 1, 3, 4, 7, 9] df[:B]=[ "a", "c", "c", "D", "c"] df[(df[:A].<5)&&(df[:B].=="c"),:] type: non-boolean (DataArray{Bool,1}) used in boolean context while loading In[18], in expression starting on line 5
source share