Convert NPZ to TSV
Turn NPZ files into TSV files. One TSV with a header row for each array in the archive, named after it; cells holding a tab, quote or line break are quoted.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop NPZ files on the dialor turn it to pick what to do
Every array in the archive as a table.Each array gets a header row and its own name in the TSV.
What you get
A TSV with a header row for each array in the archive, named after the array. The output is one or more files.
A 1-D array becomes one column. A 2-D array becomes a table with a column for each index of its second axis, named 0, 1, 2 and so on.
How values are written
Numbers keep their shortest exact form. Booleans become true and false, and dates and times become ISO 8601. NaN and NaT become empty cells, and infinities become inf and -inf.
Cells that hold a tab, quote or line break are quoted, so the columns stay in place.
Records and larger arrays
A record array gets a column for each field. A field that holds an array or nested records is written as JSON text.
An array of three or more dimensions becomes one row for each index of all but its last axis. Those rows are led by axis0, axis1 and so on.
Object arrays
Arrays of Python objects are not loaded, since unpickling them could run code. The conversion stops with
unsupported_elementswhen the archive holds one.To join several TSV files afterward, see merge TSV.
NPZ and TSV.What each format is.
The formats
NumPy Archive
Several NumPy arrays zipped together by numpy.savez, each under its own name.
- Extensions
- .npz
- MIME type
- application
/x -npz - Kind
- Text and data
Tab-Separated Values
Tab-separated values.
- Extensions
- .tsv .tab
- MIME type
- text
/tab -separated -values - Kind
- Text and data
In your code.The same NPZ to TSV conversion through the API, for your app or your agent.
$ cv convert report.npz report/ --to tsv$ cv convert report.npz report/ --to tsvQuestions.What people ask about NPZ to TSV.
Yes. Each array in the archive gets a header row and is named after the array.
As a table with a column for each index of its second axis. The columns are named 0, 1, 2 and so on.
NaN and NaT become empty cells. Infinities are written as inf and -inf.
The archive holds an array of Python objects. These are not loaded, because unpickling them could run code.