loadNpz#
- swordfish.function.loadNpz()#
Read an npz binary file from Python NumPy and convert it into DolphinDB objects. NaN in .npz file is converted into null values in DolphinDB.
Conversion Table for Python np.array and DolphinDB Objects:
NumPy array
DolphinDB Objects
one-dimensional
vector
two-dimensional
matrix
three-dimensional
tuple (where each element represents a matrix)
Data types supported for conversion are: BOOL, CHAR, SHORT, INT, LONG, FLOAT, DOUBLE and STRING (only one-dimensional array is supported).
- Parameters:
filename (Constant) – A STRING indicating the path of .npz file.