Skip to content

Commit

Permalink
bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
bramtayl committed Nov 3, 2018
1 parent 099f1f4 commit 7132a8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LightQuery.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ julia> group_by((a = [1, 1, 2, 2], b = [1, 2, 3, 4]), :a)
"""
function group_by(data::NamedTuple, columns...)
ranges = get_groups(collect(zip(select(data, columns...)...)))
rows(map(column -> map(range -> column[range], ranges), data))
as_rows(map(column -> map(range -> column[range], ranges), data))
end

subset(nt, columns...) = map(column -> nt[column], columns)
Expand Down

0 comments on commit 7132a8e

Please sign in to comment.