Base.save

Base.save(outPath, fileFormat=None, includeNames=True)

Write the data in this object to a file in the specified format.

Can write the data object to a csv, mtx, hdf5, or pickle file. If the outPath does not have an extension and fileFormat is None, this will default to writing a csv file.

Parameters:
  • outPath (str) – The location to write the output file.

  • fileFormat (str) – The formatting of the file to write. If None, the extension of outPath determines the format. Otherwise can be ‘csv’, ‘mtx’, ‘hdf5’, ‘h5’, ‘pickle’, ‘p’, or ‘pkl’.

  • includeNames (bool) – Indicates whether the file will embed the point and feature names into the file. The format of the embedding is dependent on the format of the file. Names will always be included for pickle files.

See also

nimble.data

Keywords: save, output, disk, location, path