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 168

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

11 votes
3 answers
334 views

Move the outer key inward in an association

I have a list that looks like: {15000001-><|"Loss" -> 2.85396*10^8, "Exposure" -> 6.61052*10^10|>, 15000002 -> <|"Loss" -> 1.25297*10^8, "Exposure" -> 1.57863*10^11|>, 15000003 -> <|"Loss" -> 2.059 …
Mitchell Kaplan's user avatar
8 votes
2 answers
200 views

multiple maps to extract from association

I've got some code that has to extract a lot of information, including some statistics, from an association. There's a lot of repetition in my code and I'm hoping that there's some way to simplify it …
Mitchell Kaplan's user avatar
8 votes
2 answers
768 views

Replace Missing[Unmatched] with zero

After a left JoinAcross, I have a number of Missing["Unmatched"] values in my list of associations. I'd like to set them all equal to zero. … "ReportedEP" -> 28535., "ReportedLI" -> 0., "ELI" -> 25619.3, "DLI" -> 25619.3, "EstimatesEP" -> Missing["Unmatched"]|> Edit I neglected to mention that I need to do this to the entire list of associations
Mitchell Kaplan's user avatar
7 votes
2 answers
290 views

Allocate amount A according to the distribution of amount B

Originally I didn't use associations, and did a lot of joining. Using associations seems like a better idea but this level of complication is daunting. …
Mitchell Kaplan's user avatar
6 votes
1 answer
486 views

Sum some columns in list of associations grouped by other columns

I often need to sum values in a list of Associations according to some columns in that Association. I have a way of doing it, which will be the main part of this question, but it seems awkward. …
Mitchell Kaplan's user avatar
5 votes
2 answers
479 views

Can I sum or mulitply 2 columns in a list of associations

I have a list of associations. I will need to add 2 columns (or perform some other arithmetic operation) and put the answer in a new column. …
Mitchell Kaplan's user avatar
4 votes
2 answers
136 views

Finding associations not having value Missing["Unmatched"] in a list of associations

I have a list of Associations, a: {<|"Year" -> 2011, "Loss" -> 141972., "Factor" -> 1.02884|>, <|"Year" -> 2009, "Loss" -> 27081., "Factor" -> 1.01863|>, <|"Year" -> 2014, "Loss" -> 770.693, "Factor …
Mitchell Kaplan's user avatar
4 votes
3 answers
264 views

Change value associated with keys using alternatives

I have a List of Associations that contains a Key called "ClaimBasis". There are about 10 possible values that ClaimBasis can take on, one of them being the value Null. … Perhaps my "default" method for setting values in a List of Associations is not the best way to do it, in which case I'd appreciate knowing a better alternative. …
Mitchell Kaplan's user avatar
3 votes
1 answer
166 views

Quotes vs No Quotes for Association Keys

I've tended to not put quotes around the names of my Key when making Associations. …
Mitchell Kaplan's user avatar
2 votes
0 answers
101 views

Adding an unused column creates an error in JoinAcross

I'd been having trouble using JoinAcross on two datasets. After going through the answers to my original question and fixing my code, I find I'm now having a problem that I think is being caused by m …
Mitchell Kaplan's user avatar
0 votes
1 answer
194 views

Aggregate function problem

I use a function to do something similar to a SQL sum. I've asked about simplifying it in another post. I'm still using this function and it works well for aggregates like Total or Mean. It doesn't …
Mitchell Kaplan's user avatar