summaryrefslogtreecommitdiff
path: root/numpy/add_newdocs.py
diff options
context:
space:
mode:
authorMark Wiebe <mwwiebe@gmail.com>2011-08-22 14:01:55 -0700
committerCharles Harris <charlesr.harris@gmail.com>2011-08-27 07:26:59 -0600
commit0e1a4e9525b2c1e4abae97a6927cf59b5b2d534b (patch)
tree9eb3c920de5dbe2eb1de5580a826ab047705a402 /numpy/add_newdocs.py
parent976476081b78279154950d2392aff8ee9290b60f (diff)
downloadnumpy-0e1a4e9525b2c1e4abae97a6927cf59b5b2d534b.tar.gz
ENH: missingdata: Add maskna= parameter to np.copy and ndarray.copy
Diffstat (limited to 'numpy/add_newdocs.py')
-rw-r--r--numpy/add_newdocs.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py
index 711b7de52..7bd24b45e 100644
--- a/numpy/add_newdocs.py
+++ b/numpy/add_newdocs.py
@@ -3247,17 +3247,21 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('conjugate',
add_newdoc('numpy.core.multiarray', 'ndarray', ('copy',
"""
- a.copy(order='C')
+ a.copy(order='C', maskna=None)
Return a copy of the array.
Parameters
----------
- order : {'C', 'F', 'A'}, optional
- By default, the result is stored in C-contiguous (row-major) order in
- memory. If `order` is `F`, the result has 'Fortran' (column-major)
- order. If order is 'A' ('Any'), then the result has the same order
- as the input.
+ order : {'C', 'F', 'A', 'K'}, optional
+ Controls the memory layout of the copy. 'C' means C-order,
+ 'F' means F-order, 'A' means 'F' if `a` is Fortran contiguous,
+ 'C' otherwise. 'K' means match the layout of `a` as closely
+ as possible.
+ maskna : bool, optional
+ If specifies, forces the copy to have or to not have an
+ NA mask. This is a way to remove an NA mask from an array
+ while making a copy.
See also
--------