See [here](https://discourse.julialang.org/t/query-jl-group-dataframe-by-abstracttype-gives-method-error/15501).