I just found this package FreqTables, which allows one to easily construct frequency tables from DataFrames (I'm using DataFrames.jl).
The following lines of code return me a frequency table:
df = CSV.read("exampledata.csv")
freqtable(df,:col_name)
My question is how to turn the output into a dataframe again. The output from the frequency table function seems to be a NamedArray, which I haven't been able turn into a dataframe.