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 is similar to array_repr
, the difference being that array_repr
also returns information on the kind of array and its data type.
Parameters: |
|
---|
See also
>>> np.array_str(np.arange(3)) '[0 1 2]'
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.array_str.html