40
votes
User interface Mathematica 12.1 terribly slow
Official Statement
In case some of you missed it: There was an official reply from one of the WRI devs recently in our chat
Hi. This is Jose, from Wolfram. We are aware of an unacceptable slowdown ...
28
votes
Accepted
Assign names to Dataset columns
data = N @ Normalize[#, Total] & @ Counts @ Characters @ ExampleData[
{"Text", "DeclarationOfIndependence"}
];
Dataset @ data
...
27
votes
User interface Mathematica 12.1 terribly slow
Dataset was restructured in the 12.1 release in order to support expanded formatting options and interactivity such as hiding and sorting. As a result, some Dataset outputs showed a slowdown due to ...
24
votes
Accepted
Query: adding additional operator changes meaning of preceding operators
This is a corner case that occurs when ascending operators are interleaved between descending operators. This case falls into an undocumented grey area.
In the Details and Options section of the ...
24
votes
Deleting noisy data from a plot (manually) and export the best remaining data
One simple way of "filtering" your data is to treat the points as a graph, and search for the shortest path from left to right:
...
21
votes
Error changing Dataset using Part
I have implemented the underlying kernel functionality that is needed to make this possible. However it is not yet implemented on the Dataset side. I don't think this will happen in the immediate ...
21
votes
18
votes
Accepted
How to work with a Dataset?
There are two issues under discussion: 1) the distinct dataset visualizations for the same data and 2) ways to update dataset subelements in place. We will discuss these separately.
Distinct Dataset ...
17
votes
Accepted
17
votes
Mathematica values new list
There are many ways to do this, but my favorite is to use the the stride and end arguments in Drop:
...
16
votes
Accepted
Using Select on Dataset with missing keys
You can use the Slot function rather than #slot. This is nearly as fast as the #slot implementation, but doesn't cause this issue.
...
15
votes
Accepted
Append a list as a column in a dataset
One way:
ds // Transpose // Append["intervals" -> intervals] // Transpose
In Mathematica it is usually easier to operate on rows, which is what this solution ...
14
votes
Append a list as a column in a dataset
Another way:
ds[MapThread[Append[#1, "intervals" -> #2] &, {#, intervals}] &]
14
votes
Accepted
Transpose fail in 11.1 Dataset
As observed in the question, the problem lies with the type information of the dataset. Specifically, the type information for the innermost association is missing (i.e. "any type"). This causes the ...
14
votes
Accepted
Export of (large) Dataset lasts very long
Answer
It seems that DumpSave is the fastest, based on my test below.
Albert Retey offers a very relevant comment to this answer, which I think deserves to be ...
13
votes
Creating a Stock Dataset
Dataset has been designed for hierarchical data and will fit your problem well. You should start by mapping out the hierarchy and then building a function that ...
13
votes
Append a list as a column in a dataset
Suppose your column is a list of Association objects or a Dataset:
...
13
votes
How to read .npy file in Mathematica?
I would suggest reading it with numpy and not Mathematica. It seems to me that this is not an exchange format. It is a format meant to be used only by numpy.
Mathematica 12.0 has significantly ...
13
votes
Dataset function and related gadgets not ideal for large datasets
Why would you limit yourself to Database-like operations as J. M. nicely put it, when you can have true out-of-core SQL?
In version 12 we have introduced integration of SQL-backed databases into the ...
13
votes
Accepted
Importing a Wikipedia Table as a Dataset?
After some mental hemming and hawing, I decided it'd be good to have a proper answer about importing HTML tables using something other than the often buggy "Data" ...
13
votes
Accepted
Dataset Association of Association vs Hierarchical data
To obtain a tabular rendering for a dataset, all rows must have the same number of columns, with the same set of keys, in the same order. But in our case the last association has fewer elements than ...
13
votes
12
votes
Accepted
Create a new dataset column based on the row key
After some fiddling, I have discovered that MapIndexed works for associations and came up with this solution:
...
12
votes
Accepted
Map Values in 'nested' association
I have failed to find a good duplicate so:
assoc // Query[All, {"a" -> f}]
or
MapAt[f, assoc, {All, "a"}]
12
votes
Accepted
12
votes
Accepted
Displaying more columns of a dataset
You can achieve this with Dataset and the option MaxItems -> {Automatic, All}:
...
11
votes
How can I add a column into a existing Dataset?
Update 2018. In fact
Join[ds,ds[All, <|"col3"-> (#col1+#col2&)|>],2]
is working in Mathematica 11.0.0.0
11
votes
Accepted
11
votes
Accepted
A comprehensive list of all correct input formats for [[experimental]] Neural Net functions?
Ok, you've got yourself a bit confused here, but that's okay.
Going through the three different errors:
For a simple net like the one you gave, which has one input and one output, what ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
dataset × 765associations × 129
list-manipulation × 86
data × 48
bugs × 47
import × 47
filtering × 45
query × 43
plotting × 39
export × 23
output-formatting × 20
fitting × 17
data-structures × 17
date-and-time × 16
string-manipulation × 13
matrix × 12
machine-learning × 12
manipulate × 11
probability-or-statistics × 11
curated-data × 11
sorting × 11
map × 11
excel × 11
performance-tuning × 10
time-series × 10