Tag Info

New answers tagged

4

Version 10.2 introduces direct importing of JSON data as nested Associations. "RawJSON": The "RawJSON" format identifies JSON objects of the form with associations of the form in the Wolfram Language. Among others the documentation gives this example: Import["http://en.wikipedia.org/w/api.php?action=query&prop=links&\ ...


1

The dual forms are routinely seen in NoSQL data, when importing spreadsheets with an implicit primary key &c. Use these operators to transform b/w them: primaryKeyUp[key_] := Query[GroupBy[key], First /* KeyDrop[key]]; primaryKeyDown[key_] := Query[Normal /* Map[Last[#]~Prepend~(key -> First[#]) &]]; eg assoclist // Dataset assoclist // ...


26

A Dataset represents an abstraction over a structured collection of data. Notionally, it is restricted to "well-behaved" data -- data that comes in simple forms that can be readily interchanged with external systems such as relational databases, XML documents, JSON documents, etc. These are commonplace forms such as vectors, records ("structs"), tuples, ...



Top 50 recent answers are included