diff options
author | takanori-pskq <takanori17h@gmail.com> | 2020-11-04 14:09:11 +0000 |
---|---|---|
committer | takanori-pskq <takanori17h@gmail.com> | 2020-11-04 14:59:42 +0000 |
commit | 3904e990f7027fb9139a52e844376b82e6c718e4 (patch) | |
tree | f0cb8d73c9d83caa1e148c9018cc5069917272d9 | |
parent | b219f69db011a89e6c514ee487dc437f607c4d94 (diff) | |
download | numpy-3904e990f7027fb9139a52e844376b82e6c718e4.tar.gz |
DOC: Prepend `ma.`
-rw-r--r-- | numpy/core/fromnumeric.py | 2 | ||||
-rw-r--r-- | numpy/ma/core.py | 26 |
2 files changed, 15 insertions, 13 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index 771dfb66e..6a7690c94 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -1941,7 +1941,7 @@ def shape(a): See Also -------- - alen + len ndarray.shape : Equivalent array method. Examples diff --git a/numpy/ma/core.py b/numpy/ma/core.py index 313d9e0b9..ddd45f980 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -1489,7 +1489,7 @@ def is_mask(m): See Also -------- - isMaskedArray : Test whether input is an instance of MaskedArray. + ma.isMaskedArray : Test whether input is an instance of MaskedArray. Examples -------- @@ -3538,11 +3538,12 @@ class MaskedArray(ndarray): Force the mask to hard. Whether the mask of a masked array is hard or soft is determined by - its `hardmask` property. `harden_mask` sets `hardmask` to True. + its `~ma.MaskedArray.hardmask` property. `harden_mask` sets + `~ma.MaskedArray.hardmask` to ``True``. See Also -------- - hardmask + ma.MaskedArray.hardmask """ self._hardmask = True @@ -3553,11 +3554,12 @@ class MaskedArray(ndarray): Force the mask to soft. Whether the mask of a masked array is hard or soft is determined by - its `hardmask` property. `soften_mask` sets `hardmask` to False. + its `~ma.MaskedArray.hardmask` property. `soften_mask` sets + `~ma.MaskedArray.hardmask` to ``False``. See Also -------- - hardmask + ma.MaskedArray.hardmask """ self._hardmask = False @@ -4461,7 +4463,7 @@ class MaskedArray(ndarray): See Also -------- - count_masked : Count masked elements in array or along a given axis. + ma.count_masked : Count masked elements in array or along a given axis. Examples -------- @@ -5103,7 +5105,7 @@ class MaskedArray(ndarray): Notes ----- - The mask is lost if `out` is not a valid :class:`MaskedArray` ! + The mask is lost if `out` is not a valid :class:`ma.MaskedArray` ! Arithmetic is modular when using integer types, and no error is raised on overflow. @@ -5449,7 +5451,7 @@ class MaskedArray(ndarray): See Also -------- - MaskedArray.sort : Describes sorting algorithms used. + ma.MaskedArray.sort : Describes sorting algorithms used. lexsort : Indirect stable sort with multiple keys. numpy.ndarray.sort : Inplace sort. @@ -5679,7 +5681,7 @@ class MaskedArray(ndarray): See Also -------- - minimum_fill_value + ma.minimum_fill_value Returns the minimum filling value for a given datatype. """ @@ -5813,7 +5815,7 @@ class MaskedArray(ndarray): See Also -------- - maximum_fill_value + ma.maximum_fill_value Returns the maximum filling value for a given datatype. """ @@ -6907,11 +6909,11 @@ def compressed(x): Return all the non-masked data as a 1-D array. This function is equivalent to calling the "compressed" method of a - `MaskedArray`, see `MaskedArray.compressed` for details. + `ma.MaskedArray`, see `ma.MaskedArray.compressed` for details. See Also -------- - MaskedArray.compressed + ma.MaskedArray.compressed Equivalent method. """ |