Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

New answers tagged

6

This is a bug in the type deduction system of Dataset. In principle, your example should work as you expect. The problem is that when given a query, Dataset attempts to predict the type of the result before executing the query. Now in principle, this should happen silently in the background without you seeing anything. In your case, something like the ...


2

I would write this as assoc = <|"A" -> #, "B" -> 10 - #|>& @ RandomInteger[{1, 10}] (* <|"A" -> 9, "B" -> 1|> *)


Top 50 recent answers are included