Skip to main content

Questions tagged [associations]

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

7 votes
3 answers
431 views

This might be another known issue in Dataset but not able to find workaround. Dataset converts $\pi$ to decimal point. But keeps $\{\pi\}$ as exact. Is there a way to tell Dataset to keep $\pi$ as ...
Nasser's user avatar
  • 156k
4 votes
2 answers
161 views

I use Dataset to display Association. For debugging mainly. But if a field value is empty list {}, it display as blank. This can be confusing as it looks also same as if field was empty string. Is ...
Nasser's user avatar
  • 156k
2 votes
0 answers
54 views

Suppose that I have an association like: a=<|1->2,2->3,3->5|>. I want to modify a such that for every key not in {1,2,3}, for example 4, it returns -...
Giovanni Russo's user avatar
6 votes
2 answers
230 views

After switching from 13.2 to 14.3, I noticed that some behavior of Association has changed: ...
Acus's user avatar
  • 3,877
4 votes
3 answers
395 views

Evaluating <|"key" -> {<|"key" -> "val"|>}|> /. {<|stuff__|>} :> <|stuff|> Produces ...
Tapiocaweasel's user avatar
1 vote
0 answers
81 views

I really like Associations in most regards. But they can be really annoying to work with when you need to search, or act on, their value contents. I understand why ...
Kvothe's user avatar
  • 4,931
1 vote
2 answers
152 views

Main question: Given some nested association assoc with an unknown structure (where the values are potentially rather large expressions and we do not want to ...
CA Trevillian's user avatar
6 votes
3 answers
201 views

I have a large number of replacement rules where the right hand side (RHS) is always the same. To avoid repetition, I separated the two sides to add the same RHS to all of them. This is a minimal ...
Gustavo Delfino's user avatar
3 votes
2 answers
111 views

How can I KeySort ignoring the first key-value pair? e.g.: from ...
IntroductionToProbability's user avatar
1 vote
0 answers
150 views

I have a huge text file that has these associactions in it(one on each line): {12, 14, 24, 25, 29}->{13, 22, 25, 31, 36} I need to convert it to this form: <...
Michel Mesedahl's user avatar
4 votes
2 answers
222 views

I wish to apply some replacements in my association. For example, suppose I have <|a->b,c-><|1->2,b->d|>|> then, how to replace all ...
zplus11's user avatar
  • 117
2 votes
1 answer
131 views

My goal is to get association <|{"Yes",8}|->"likeCandy> by arriving at leaf "likeCandy", from ...
Soon's user avatar
  • 1,484
6 votes
3 answers
384 views

Question I’m working with an OpenAPI JSON schema and want to visualize and understand its structure using Mathematica. For example, given the following schema: ...
Conor Cosnett's user avatar
3 votes
2 answers
288 views

I want to use Counts with this kind of dataset: assoc = Counts[{a, a, a, a, b, b, b, {c}, {c}}] ...
M.A.'s user avatar
  • 959

15 30 50 per page
1
2 3 4 5
41