Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 92

Questions on the associative data-structure introduced in Mathematica version 10.

28 votes
5 answers
2k views

How can a key be renamed in an Association?

replace it by transforming into Normal land and back into Association land: Association[ ReplaceAll[Normal[assoc], Rule["this_key_is_too_long_to_type", rhs_] :> Rule["c", rhs]]] But I have found with Associations
ArgentoSapiens's user avatar
14 votes
4 answers
674 views

How can a field be efficiently added to a Dataset?

Let's use the example Dataset: dataset = Dataset[{ <|"a" -> 1, "b" -> "x", "c" -> {1}|>, <|"a" -> 2, "b" -> "y", "c" -> {2, 3}|>, <|"a" -> 3, "b" -> "z", "c" -> {3}|>, <|"a" -> 4, "b" -> …
ArgentoSapiens's user avatar
6 votes
1 answer
187 views

How can Map be given access to the keys of a Dataset?

Consider an example Dataset: icds = Dataset[ Map[ Association[ Thread[Rule[{"brand", "flavor", "parameter", "response"}, #]]] &, { {"a", "vanilla", 1, RandomReal[NormalDistribution[] …
ArgentoSapiens's user avatar