From 5bfd65a55517e7a0af60d31e8dba6dc2f6b87df1 Mon Sep 17 00:00:00 2001 From: Matthew Brett Date: Thu, 13 Sep 2012 13:55:16 +0100 Subject: DOC: describe output from astype method Expand docstring for ``astype`` method. --- numpy/add_newdocs.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'numpy') diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py index a416559db..f94a6964a 100644 --- a/numpy/add_newdocs.py +++ b/numpy/add_newdocs.py @@ -3067,6 +3067,14 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('astype', requirements are satisfied, the input array is returned instead of a copy. + Returns + ------- + arr_t : ndarray + Unless `copy` is False and the other conditions for returning the input + array are satisfied (see description for `copy` input paramter), `arr_t` + is a new array of the same shape as the input array, with dtype, order + given by `dtype`, `order`. + Raises ------ ComplexWarning : -- cgit v1.2.1