# numpy 2.5.4 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input

    Utility function to check median result from data for NaN values at the end
    and return NaN in that case. Input result can also be a MaskedArray.

    Parameters
    ----------
    data : array
        Sorted input data to median function
    result : Array or MaskedArray
        Result of median function.
    axis : int
        Axis along which the median was computed.

    Returns
    -------
    result : scalar or ndarray
        Median or NaN in axes which contained NaN in the input.  If the input
        was an array, NaN will be inserted in-place.  If a scalar, either the
        input itself or a scalar NaN.
    
=== parse numpydoc
short_description: |
  Utility function to check median result from data for NaN values at the end
  and return NaN in that case. Input result can also be a MaskedArray.
blank_after_short_description: True
blank_after_long_description: False
style: numpydoc
- DocstringParam
  description: 'Sorted input data to median function'
  kind: param
  key: 'param'
  arg_name: 'data'
  type_name: 'array'
  is_optional: False
- DocstringParam
  description: 'Result of median function.'
  kind: param
  key: 'param'
  arg_name: 'result'
  type_name: 'Array or MaskedArray'
  is_optional: False
- DocstringParam
  description: 'Axis along which the median was computed.'
  kind: param
  key: 'param'
  arg_name: 'axis'
  type_name: 'int'
  is_optional: False
- DocstringReturns
  description: |
    Median or NaN in axes which contained NaN in the input.  If the input
    was an array, NaN will be inserted in-place.  If a scalar, either the
    input itself or a scalar NaN.
  kind: returns
  key: 'returns'
  type_name: 'scalar or ndarray'
  is_generator: False
  return_name: 'result'
=== detect
numpydoc
=== compose numpydoc
Utility function to check median result from data for NaN values at the end
and return NaN in that case. Input result can also be a MaskedArray.

Parameters
----------
data : array
    Sorted input data to median function
result : Array or MaskedArray
    Result of median function.
axis : int
    Axis along which the median was computed.

Returns
-------
result : scalar or ndarray
    Median or NaN in axes which contained NaN in the input.  If the input
    was an array, NaN will be inserted in-place.  If a scalar, either the
    input itself or a scalar NaN.
