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
2 votes
0 answers
53 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
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
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
1 vote
0 answers
149 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
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
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