Toy example:

First, create a Dataset:

data = Dataset[{<|"x" ->  1, "y" -> -2|>,
                <|"x" -> -3, "y" ->  4|>}]

Mathematica graphics

Next, export it as a TSV file:

Export["/tmp/data.tsv", data, "tsv"];

Finally, check output from the Unix command-line:

% cat /tmp/data.tsv
 x    y
 1    2
 3    4

Note that the minus signs are missing from the output!

I'm using Version for Linux (64-bit).

NB: I have not looked into this problem systematically. In particular, I have not looked at other formats, other conditions that may lead to loss of data, other versions of Mathematica, other OSs, etc.

  • 1
    $\begingroup$ Confirmed this behavior also on Mac OS ($Version=11.0.1 for Mac OS X x86 (64-bit) (September 21, 2016) ) $\endgroup$ – yohbs Jul 26 '17 at 21:11

Yes, this looks like a bug, it also happens on Windows 11.1.1 and Linux 11.1.1, however, until this is fixed in the next version (which is certainly will be, right WRI?), you can do this simple workaround:

ExportString[#, "TSV"] &@
Normal@Dataset[{<|"x" -> 1, "y" -> -2|>, <|"x" -> -3, "y" -> 4|>}]
| improve this answer | |
  • 3
    $\begingroup$ This is already fixed in our internal development version and will be in the next release. $\endgroup$ – Itai Seggev Jul 27 '17 at 3:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.