JuliaData / JSONTables.jl

JSON3.jl + Tables.jl
MIT License
68 stars 10 forks source link

Define `filter` #15

Open andyferris opened 4 years ago

andyferris commented 4 years ago

I was searching through some data for a particular row and noticed that [row for row in json_table if pred(row)] is ridiculously fast (much faster than creating a DataFrame from it and then filtering).

It would be nice to be apply a row filter directly via filter(pred, json_table) like you can with a DataFrame or many other table types. Clearly it already supports Iterators.filter so why not Base.filter? :)