cthoyt / pystow

👜 Easily pick a place to store data for your Python code.
https://pystow.readthedocs.io
MIT License
36 stars 6 forks source link

loading comma-separated values format defaults to tab separators #51

Closed sgbaird closed 2 years ago

sgbaird commented 2 years ago

After reading through https://en.wikipedia.org/wiki/Comma-separated_values, I think I can understand the decision behind making tab separators the default as "the only safe option," though it does seem confusing to me that ensure_csv assumes sep="\t". Maybe worth mentioning the default pd.to_csv() uses commas (no tabs).

https://github.com/cthoyt/pystow/blob/2ce969069d5e5c5b86e32ce47ff2772faff1cc48/src/pystow/impl.py#L1414-L1417