Back to Numerical Arrays (NumPy)
np.savetxt
Save an array to a text file.
Syntax
np.savetxt(file, arr, options?)
Description
Save an array to a text file.
Parameters
| Name | Description |
|---|---|
| file | - Output file (path or FileSystemFileHandle) |
| arr | - 1D or 2D array to save |
| options(optional) | - Formatting options |
Returns
Promise<void>