I’m trying to count the number of occurrences of each value in a column in a JuliaDB indexed table, but I cannot figure out how to do so. In a Data Frame, I would simply do:
sort!(by(dataframe, :column_to_target, nrow), :x1, rev=true)
This line goes through the column
:column_to_target in the Data Frame
dataframe and produces a new Data Frame that has each unique value in
:column_to_target along with the number of times it occurs, expressed in descending order in column
How can I do this in JuliaDB? I’m assuming it can be done with the
reduce method but I’ve been unable to figure it out.