| [ Web Proxy ] |
| Viewing: https://numpy.org/doc/stable/reference/generated/../generated/numpy.array_str.html#numpy.array_str | [Back] [Original] |
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.
Input array.
Inserts newlines if text is longer than max_line_width.
Defaults to numpy.get_printoptions()['linewidth'].
Floating point precision.
Defaults to numpy.get_printoptions()['precision'].
Represent numbers very close to zero as zero; default is False.
Very close is defined by precision: if the precision is 8, e.g.,
numbers smaller (in absolute value) than 5e-9 are represented as
zero.
Defaults to numpy.get_printoptions()['suppress'].
See also
Examples
>>> import numpy as np
>>> np.array_str(np.arange(3))
'[0 1 2]'
| Web Proxy Viewer | New URL | Original Page |