The Wayback Machine - https://web.archive.org/web/20200610005649/https://github.com/topics/csv
Skip to content
#

CSV

CSV is a common data exchange format that stores tabular data in a plain text file. A CSV file stores the data in a delimited text file that uses commas to separate the values.

Here are 4,095 public repositories matching this topic...

sheetjs
dandv
dandv commented Jan 6, 2020
const XLSX = require('xlsx');

const wb = XLSX.utils.book_new();

const ws = XLSX.utils.json_to_sheet([]);

XLSX.utils.book_append_sheet(wb, ws, 'Bug sheet');

ws.A1 = { t: 's', f: 'square' };

XLSX.writeFile(wb, 'formula.ods');

The resulting .ODS file contains:

<table:table-cell table:formula="of:=square" office:value-type="string"><text:p>undefined</text:p></table
DamirKh
DamirKh commented Nov 14, 2019

It would be great to have the option "skip N lines", since CSV files often contain not commented headers. Can this be implemented?
For example:

This is a data file generated by some old software.
Next line will contain a headers of parameters.
Temperature, Humidity, Voltage
22.5, 45.5, 220
23.0, 44.0, 219
...
In such case "skipLines: 2" could be added to con

datasette
trantor
trantor commented Jan 23, 2020

Hello.
I've come across what (to me) seems to be a problem with the FILENAME and FILENUM variables.

# mlr --version
Miller v5.6.2

# cat /tmp/csv1
A,B,C
_2GB,255,2
_4GB,120,4
_6GB,50,6
_10GB,10,10

# cat /tmp/csv2
FIRST,SECOND,THIRD,FOURTH
1,2,3,4
5,6,7,8
9,10,11,12
13,14,15,16

# mlr --icsv cat then put 'print FILENAME'   /tmp/csv1 /tmp/csv2
/tmp/csv1
A=_2GB,B=255,C=2
/
mbloch
mbloch commented Jan 14, 2019

Lack of documentation is a problem for most users. I have a few ideas for how to improve the documentation.

  • There should be more examples.
  • Examples should all be runnable, and sample input data should be downloadable.
  • The documentation should include articles on important topics, for example, coordinate systems, simplification methods, and how to use JavaScript expressions as arguments
spamandeggs
spamandeggs commented Mar 18, 2020

IMPORT_EXPORT_USE_TRANSACTIONS default is True and not False as documented in latest
https://django-import-export.readthedocs.io/en/stable/installation.html

IMPORT_EXPORT_USE_TRANSACTIONS = False in settings is mandatory if one want to actually import something in a mysql db (at least)

without it :

result = somemodel_resource.import_data(datanew, dry_run=True)

will fail with "Impr

Jemi
Jemi commented Feb 18, 2020

I'm using tsv-utils from the arch linux aur, trying to format some word frequency data from the new general services list dataset. tsv-utils makes at least two errors that I'm able to see when I'm running this commandline:

tsv-select -f 1,7 NGSL+1.01+with+SFI.tsv | tsv-pretty | less

adding -s 5 to tsv-pretty works around this problem. The tsv file was converted from the file NGSL+1.01+with

Wikipedia
Wikipedia

Related Topics

tsv
You can’t perform that action at this time.