Earlier quoted context omitted.
> in the real world the spec is essentially "Can you import it to Excel?" And the answer to that is always no. You will it think it's yes because it works for you, but when you send it to someone who has a different Excel version or simply different regional settings, it won't work. The recipient will first have to figure out what dialect you used to export.
At this point i suspect excel is as dangerous as powerpoint to the quest for sharing and improving human knowledge, in that it gives the illusion of allowing people to analyze data but not the tools to make sure they get their data and model lined up correctly.
Friends don't let friends export to CSV
311–320 of 459 posts
Re: Friends don't let friends export to CSV
#312Earlier quoted context omitted.
> when I request data through FOIA Fascinating. Can you share any details? Did you ever think to share some of your interesting finds here on HN as a submission?
Every now and then, yep :) https://mchap.io/that-time-the-city-of-seattle-accidentally-...
Re: Friends don't let friends export to CSV
#313https://www.reddit.com/r/vim/comments/1bo41wk/entering_and_d...?
Re: Friends don't let friends export to CSV
#314I treat formats such as parquet as I generally do: I try to allow various different inputs, and produce standard outputs. Parquet is something I allow purely as an optimization. CSV is the common default all of my tools have (UTF-8 without BOM, international locale, comma separator, quoting at the start of the value optional, standards-compliant date format or unix timestamps). Users generally don't have any issue with adapting their files to that format if there's any difference.
Re: Friends don't let friends export to CSV
#315As a French, there is another problem with CSV. In the French locale, the decimal point is the comma, so "121.5" is written "121,5". It means, of course, that the comma can't be used as a separator, so the semicolon is used instead. It means that depending whether or not the tool that exports the CSV is localized or not, you get commas or you get semicolons. If you are lucky, the tool that imports it speaks the same…
Re: Friends don't let friends export to CSV
#316Earlier quoted context omitted.
> in the real world the spec is essentially "Can you import it to Excel?" And the answer to that is always no. You will it think it's yes because it works for you, but when you send it to someone who has a different Excel version or simply different regional settings, it won't work. The recipient will first have to figure out what dialect you used to export.
Oh absolutely. Don't forget about the giant mess Microsoft made in countries like the Netherlands, where Excel will refuse to automatically open comma-separated values files (you know, CSV), unless the separator is a semicolon — because someone in the past thought that was how the Dutch did it. You want people to be able to open your nice and sensible CSV files in Excel? First figure out which arcane locale specific…
Re: Friends don't let friends export to CSV
#317Surprised no one has mentioned sqlite even once in these comments.
Re: Friends don't let friends export to CSV
#318Earlier quoted context omitted.
> in the real world the spec is essentially "Can you import it to Excel?" And the answer to that is always no. You will it think it's yes because it works for you, but when you send it to someone who has a different Excel version or simply different regional settings, it won't work. The recipient will first have to figure out what dialect you used to export.
If the answer was always no, importing CSVs to Excel wouldn't be an expectation or widely used.
Re: Friends don't let friends export to CSV
#319Earlier quoted context omitted.
Now all your numbers are strings
It's a text file. All your numbers were already strings. Nothing has changed.
If they are numbers to begin with (not "numbers"), you can just import the csv and you'll get the expected result out of the box.
In the end things are just 1s and 0s, but that doesn't mean we only ever do binary operations on data at the abstraction layer we humans operate, so saying it's just 0s and 1s or just strings is not very smart.
Re: Friends don't let friends export to CSV
#320Earlier quoted context omitted.
There are tools to convert between the formats. Either you have a defined data pipeline where you know what you get at each step and apply the necessary transformations. Or you get random files and, yes, have to inspect them and see how to convert them if necessary. It’s unfortunate that there isn’t a single CSV format, but for historical reasons it is what it is. It’s effectively more like a family of formats that s…
>sep=; Thank you! This is a game changer. As I was reading through these comments I was thinking how much better it would be if the separator could be specified in the file, but it would only be useful for my own stuff, if I was to do that on my own. I’ll be trying this first thing tomorrow at work. I don’t do as much with CSVs as I used to, but am currently working with them a lot, and have a single entry that alway…
A minimal text file of this type would contain:
#key=value
sep=;