diff options
-rw-r--r-- | numpy/ma/core.py | 13 | ||||
-rw-r--r-- | numpy/ma/extras.py | 2 |
2 files changed, 7 insertions, 8 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py index 54cb12f17..38a0a8b50 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -399,10 +399,10 @@ def _recursive_set_fill_value(fillvalue, dt): Parameters ---------- - fillvalue: scalar or array_like + fillvalue : scalar or array_like Scalar or array representing the fill value. If it is of shorter length than the number of fields in dt, it will be resized. - dt: dtype + dt : dtype The structured dtype for which to create the fill value. Returns @@ -5220,7 +5220,7 @@ class MaskedArray(ndarray): -------- numpy.ndarray.mean : corresponding function for ndarrays numpy.mean : Equivalent function - numpy.ma.average: Weighted average. + numpy.ma.average : Weighted average. Examples -------- @@ -6913,8 +6913,7 @@ def compressed(x): See Also -------- - ma.MaskedArray.compressed - Equivalent method. + ma.MaskedArray.compressed : Equivalent method. """ return asanyarray(x).compressed() @@ -7343,12 +7342,12 @@ def choose(indices, choices, out=None, mode='raise'): Given an array of integers and a list of n choice arrays, this method will create a new array that merges each of the choice arrays. Where a - value in `a` is i, the new array will have the value that choices[i] + value in `index` is i, the new array will have the value that choices[i] contains in the same place. Parameters ---------- - a : ndarray of ints + indices : ndarray of ints This array must contain integers in ``[0, n-1]``, where n is the number of choices. choices : sequence of arrays diff --git a/numpy/ma/extras.py b/numpy/ma/extras.py index 96e64914a..a775a15bf 100644 --- a/numpy/ma/extras.py +++ b/numpy/ma/extras.py @@ -1217,7 +1217,7 @@ def union1d(ar1, ar2): The output is always a masked array. See `numpy.union1d` for more details. - See also + See Also -------- numpy.union1d : Equivalent function for ndarrays. |