RE: [julia-users] Filtering DataFrame with a function

2016-10-13 Thread Júlio Hoffimann
That is really cool David, I fully agree with this modularization :) -Júlio

RE: [julia-users] Filtering DataFrame with a function

2016-10-13 Thread David Anthoff
...@gmail.com] On Behalf Of Jacob Quinn Sent: Wednesday, October 12, 2016 11:14 PM To: julia-users@googlegroups.com Subject: Re: [julia-users] Filtering DataFrame with a function I think the Julia ecosystem is evolving tremendously in this respect. I think originally, there were a lot of these

Re: [julia-users] Filtering DataFrame with a function

2016-10-13 Thread Júlio Hoffimann
gt; >>>>> @where foo(i) >>>>> >>>>> >>>>> >>>>> As long as the returns a Bool, you should be good. >>>>> >>>>> >>>>> >>>>> If you run a query like this, q will b

Re: [julia-users] Filtering DataFrame with a function

2016-10-13 Thread Alex Mellnik
hat is something I >>>> should >>>> probably enable at some point (I’m also looking into the VB LINQ syntax >>>> that supports things like counting in the query expression itself). >>>> >>>> >>>> >>>> But you coul

Re: [julia-users] Filtering DataFrame with a function

2016-10-12 Thread Jacob Quinn
julia iterator. >>>> Right now you can’t just say length(q), although that is something I should >>>> probably enable at some point (I’m also looking into the VB LINQ syntax >>>> that supports things like counting in the query expression itself). >>>> >>&

Re: [julia-users] Filtering DataFrame with a function

2016-10-12 Thread Júlio Hoffimann
supports things like counting in the query expression itself). >>> >>> >>> >>> But you could materialize the query as an array and then look at the >>> length of that: >>> >>> >>> >>> q = @from i in df begin >>> >

Re: [julia-users] Filtering DataFrame with a function

2016-10-12 Thread anthoff
t; >> @collect >> >> end >> >> count = length(q) >> >> >> >> The @collect statement means that the query will return an array of a >> NamedTuple type (you can also materialize it into a whole bunch of other >> data structures, tak

Re: [julia-users] Filtering DataFrame with a function

2016-10-12 Thread Júlio Hoffimann
his point. Best > way for that is to open issues here https://github.com/ > davidanthoff/Query.jl. > > > > Best, > > David > > > > *From:* julia-users@googlegroups.com [mailto:julia-users@googlegroups.com] > *On Behalf Of *Júlio Hoffimann > *Sent:* Wednesda

RE: [julia-users] Filtering DataFrame with a function

2016-10-12 Thread David Anthoff
, 2016 5:20 PM To: julia-users Subject: [julia-users] Filtering DataFrame with a function Hi, I have a DataFrame for which I want to filter rows that match a given criteria. I don't have the number of columns beforehand, so I cannot explicitly list the criteria with the :symbol synt

[julia-users] Filtering DataFrame with a function

2016-10-12 Thread Júlio Hoffimann
Hi, I have a DataFrame for which I want to filter rows that match a given criteria. I don't have the number of columns beforehand, so I cannot explicitly list the criteria with the :symbol syntax or write down a fixed number of indices. Is there any way to filter with a lambda expression? Or e