Here is the association I have:
assc = {"abc" -> 2.456, "efg" -> 3.652, "_final" -> 6.108}
I need to remove all key-value pairs where keys start with '_'. I am new to Mathematica, so can anyone please help me out with this. I have a condition (mentioned below), I just don't know how to apply it on an association using 'select'?
The condition I have is:
(StringStartsQ[Keys[assc], "_"])
Output:= {False, False, False, False, False, False, False, False, False, \
False, False, False, False, False, True, True, True, True, True}
Pick[assc, StringStartsQ[Keys[assc], Except["_"]]]
$\endgroup$assc = {"abc" -> 2.456, ... }
is a list of rules not an association. $\endgroup$