Convert NPZ to MD
Turn NPZ files into Markdown files. One Markdown table with a header row for each array in the archive, named after it.
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 an NPZ as a Markdown table.Each array becomes its own table with a header row, named after the array.
What you get
One Markdown table for each array in the archive, named after that array. 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.
A record array gets a column for each field. A field that holds an array or nested records is written as JSON text.
Arrays with three or more dimensions
An array of three or more dimensions becomes one row for each index of all but its last axis. Those rows are led by columns named axis0, axis1 and so on, so you can tell where each row sits in the array.
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. Infinities are written as inf and -inf.
Object arrays
Arrays of Python objects are not loaded, because unpickling them could run code. The conversion stops with
unsupported_elementswhen the archive holds one.To work with the result next, see every MD conversion or merge MD.
NPZ and MD.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
Markdown
Plain text with light markup for headings, lists, links and code. What agents and developers write in.
- Extensions
- .md .markdown .mdown
- MIME type
- text
/markdown - Kind
- Text and data
In your code.The same NPZ to MD conversion through the API, for your app or your agent.
$ cv convert report.npz report/ --to md$ cv convert report.npz report/ --to mdQuestions.What people ask about NPZ to MD.
Each table is named after the array it comes from, as stored in the archive.
It becomes a table with one 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, since unpickling them could run code.