diff options
author | Yashasvi Misra <54177363+yashasvimisra2798@users.noreply.github.com> | 2021-07-23 13:52:48 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 11:22:48 +0300 |
commit | 1078723d2741d3379b65a70ee7aa23d9e7f08457 (patch) | |
tree | 5752efff8448de23c41677a7d4f72d4484cd1e67 | |
parent | d61fdc7d4c33d7f2104afde7e32d56af59f9d4f9 (diff) | |
download | numpy-1078723d2741d3379b65a70ee7aa23d9e7f08457.tar.gz |
DOC: Clarify docstring scalar inputs to array (#19545)
-rw-r--r-- | numpy/core/_add_newdocs.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/_add_newdocs.py b/numpy/core/_add_newdocs.py index 41e4e4d08..4dab9006d 100644 --- a/numpy/core/_add_newdocs.py +++ b/numpy/core/_add_newdocs.py @@ -796,6 +796,8 @@ add_newdoc('numpy.core.multiarray', 'array', object : array_like An array, any object exposing the array interface, an object whose __array__ method returns an array, or any (nested) sequence. + If object is a scalar, a 0-dimensional array containing object is + returned. dtype : data-type, optional The desired data-type for the array. If not given, then the type will be determined as the minimum type required to hold the objects in the |