I found it at the bottom of this page
http://juliastats.github.io/DataFrames.jl/subsets.html
This seems like a big feature not to support. What I am looking for is the
equivalent of where() in pandas
On Sunday, September 14, 2014 4:12:25 PM UTC-7, Arshak Navruzyan wrote:
>
> I can't get either subset syntax working for some reason. I tried to
>
>
> Pkg.installed("DataFrames")
>
> v"0.5.7"
>
>
> df = DataFrame(A = 1:4, B = ["M", "F", "F", "M"])
>
> sub(df,:(A .== "M"))
>
> `getindex` has no method matching getindex(::SimpleIndex, ::Expr)
> while loading In[72], in expression starting on line 13
>
> in sub at
> /Users/arshakn/.julia/v0.3/DataFrames/src/subdataframe/subdataframe.jl:97
>
> df[:(A % 2 .== 0),:]
>
>
> `getindex` has no method matching getindex(::DataFrame, ::Expr,
> ::UnitRange{Int64})
> while loading In[73], in expression starting on line 15
>
>