diff options
author | Ralf Gommers <ralf.gommers@gmail.com> | 2021-01-29 06:07:50 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 06:07:50 +0000 |
commit | b74ee9ff8f0c3be41dfbd1bd5a10f54e67c40f39 (patch) | |
tree | 6b394f167d68262463bd28fc79d8c52368b5995f | |
parent | 7a4e602a1f9e39ec3662e21a12c35c6df0cf9295 (diff) | |
parent | 7aebdfa50254270085fe6a24206d35d31e43c939 (diff) | |
download | numpy-b74ee9ff8f0c3be41dfbd1bd5a10f54e67c40f39.tar.gz |
Merge pull request #18251 from Carreau/more-docs
DOC: more misc fixes of syntax
-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. |