Issue using the Base.get Get a group based on the values of the grouping columns example code
here >> Functions · DataFrames.jl
Base.get — Function.
get(gd::GroupedDataFrame, key, default)
Get a group based on the values of the grouping columns.
julia>
df = DataFrame(a = repeat([:foo, :bar, :baz], outer=[2]),
b = repeat([2, 1], outer=[3]),
c = 1:6);
julia> gd = groupby(df, :a)
GroupedDataFrame with 3 groups based on key: a
julia> get(gd, (a=:bar,), nothing)
ERROR: MethodError: no method matching get(::GroupedDataFrame{DataFrame}, ::NamedTuple{(:a,),Tuple{Symbol}}, ::Nothing)
Closest candidates are:
get(::REPL.Terminals.TTYTerminal, ::Any, ::Any) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.0/REPL/src/Terminals.jl:176
get(::StatsModels.Schema, ::Any, ::Any) at /home/marc/.julia/packages/StatsModels/8N8nM/src/schema.jl:49
get(::StatsModels.FullRank, ::Any, ::Any) at /home/marc/.julia/packages/StatsModels/8N8nM/src/schema.jl:253
Julia Base v1.04
(v1.0-EXP) pkg> st
** [a93c6f00] DataFrames v0.20.2**
Any thoughts ,suggestions or work arounds appreciated.