Skip to content

Commit

Permalink
DOC: Touchup wording and mv detail to extended summary
Browse files Browse the repository at this point in the history
[skip azp] [skip actions] [skip cirrus]
  • Loading branch information
rossbar committed May 24, 2024
1 parent 70f05c8 commit 5479fc5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions numpy/ma/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,11 +608,12 @@ def common_fill_value(a, b):

def filled(a, fill_value=None):
"""
Return a copy of `a`, with masked values replaced by a fill value.
However, if there are no masked values to fill, `a` will be returned
instead as an ndarray.
Return input as an `~numpy.ndarray`, with masked values replaced by
`fill_value`.
If `a` is not a `MaskedArray`, `a` itself is returned.
If `a` is a `MaskedArray` with no masked values, then ``a.data`` is
returned.
If `a` is a `MaskedArray` and `fill_value` is None, `fill_value` is set to
``a.fill_value``.
Expand Down

0 comments on commit 5479fc5

Please sign in to comment.