numpy.array_str(a,max_line_width=None,precision=None,suppress_small=None)[source]¶Return a string representation of the data in an array.
The data in the array is returned as a single string. This function issimilar toarray_repr, the difference being thatarray_repr alsoreturns 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
Examples
>>>np.array_str(np.arange(3))'[0 1 2]'