summaryrefslogtreecommitdiff
path: root/numpy/core/arrayprint.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/arrayprint.py')
-rw-r--r--numpy/core/arrayprint.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/numpy/core/arrayprint.py b/numpy/core/arrayprint.py
index 98df924e7..a3edb64d4 100644
--- a/numpy/core/arrayprint.py
+++ b/numpy/core/arrayprint.py
@@ -245,7 +245,8 @@ def array2string(a, max_line_width = None, precision = None,
Floating point precision. Default is the current printing
precision (usually 8), which can be altered using `set_printoptions`.
suppress_small : bool, optional
- Represent very small numbers as zero.
+ Represent very small numbers as zero. A number is "very small" if it
+ is smaller than the current printing precision.
separator : string, optional
Inserted between elements.
prefix : string, optional
@@ -256,7 +257,13 @@ def array2string(a, max_line_width = None, precision = None,
The length of the prefix string is used to align the
output correctly.
style : function, optional
- Callable.
+ A function that accepts an ndarray and returns a string. Used only
+ when the shape of `a` is equal to ().
+
+ Returns
+ -------
+ array_str : str
+ String representation of the array.
See Also
--------