Convert NPY to ODS
Turn NPY files into ODS. One sheet named after the file, with a bold header row and numbers, booleans and dates as typed cells.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop NPY files on the dialor turn it to pick what to do
A NumPy array as a spreadsheet.One sheet with a bold header row and typed cells.
What you get
An ODS file with one sheet, named after the file. The first row is a bold header. Numbers, booleans and dates are written as typed cells, so a spreadsheet program treats them as such.
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.
Records and bigger 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 columns named axis0, axis1 and so on.
Empty values and objects
NaN and NaT become empty cells.
Arrays of Python objects are not loaded, since unpickling them could run code. The conversion stops with
unsupported_elementsfor these files.
NPY and ODS.What each format is.
The formats
NumPy Array
A single NumPy array saved with numpy.save, with its shape and data type.
- Extensions
- .npy
- MIME type
- application
/x -npy - Kind
- Text and data
OpenDocument Spreadsheet
OpenDocument spreadsheet, the native format of LibreOffice Calc.
- Extensions
- .ods
- MIME type
- application
/vnd .oasis .opendocument .spreadsheet - Kind
- Documents
In your code.The same NPY to ODS conversion through the API, for your app or your agent.
$ cv convert report.npy report.ods$ cv convert report.npy report.odsQuestions.What people ask about NPY to ODS.
Yes. A file with a single array becomes one ODS file with one sheet named after the file.
They become empty cells. The same goes for NaT.
It becomes one row for each index of all but its last axis. The rows are led by columns named axis0, axis1 and so on.
The array holds Python objects. These are not loaded, because unpickling them could run code. See every ODS conversion for other ways to reach ODS.