Return a string representation of the data in an array.
The data in the array is returned as a single string. This function is similar to array_repr, the difference being that array_repr also returns information on the kind of array and its data type.
Parameters: | a : ndarray
max_line_width : int, optional
precision : int, optional
suppress_small : bool, optional
|
---|
See also
array2string, array_repr, set_printoptions
Examples
>>> np.array_str(np.arange(3))
'[0 1 2]'