News for hackers. Stuff that matters.
Re:How to share data with a statistician by bermanoid on Monday November 25, 2013 @07:33AM (#6793700)
I'd like to follow this up with a plea to statisticians to make sure you're not sending data back to programmers with bizarre newline formats - certain versions of Mac Excel save with /r newlines, which haven't been used in over a decade and pretty much break everything. If in doubt, it's probably best to save in Windows newline mode from MS software, at least most utilities are used to dealing with that.
Re:How to share data with a statistician by sampo on Monday November 25, 2013 @07:45AM (#6793737)
I once debugged a case like that. A NumPy script expected to read in a table from a file, but the file used /r newlines, so the NumPy script read it in as a very long single line. Then later references to table lines >1 broke the script.

The strange part is, the file and the script were provided by the same person.

Re:How to share data with a statistician by FigBug on Monday November 25, 2013 @09:58AM (#6794307)
And a plea to programmers, handle \n, \r\n and \r. And utf8, utf16, and all the other common text encodings. It's sad that in 2013 it'sstill hard to read in a text file, so the burden is shifted to the user.