docstr: ivy.Array instance method variant of ivy.nanprod. This method simply
  wraps the function, and so the docstring for ivy.prod also applies to
  this method with minimal changes.
  
  Parameters
  ----------
  self
      Input array.
  axis
      Axis or axes along which the product is computed.
      The default is to compute the product of the flattened array.
  dtype
      The desired data type of returned array. Default is None.
  out
      optional output array, for writing the result to.
  keepdims
      If this is set to True, the axes which are reduced are left in the result
      as dimensions with size one. With this option, the result will broadcast
      correctly against the original a.
  initial
      The starting value for this product.
  where
      Elements to include in the product
  
  Returns
  -------
  ret
      The product of array elements over a given axis treating
      Not a Numbers (NaNs) as ones
  
  Examples
  --------
  >>> a = ivy.array([[1, 2], [3, ivy.nan]])
  >>> a.nanprod(a)
  6.0
  >>> a.nanprod(a, axis=0)
  ivy.array([3., 2.])
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.nanprod",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.prod","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","Input","array",".","axis","Axis","or","axes","along","which","the","product","is","computed",".","The","default","is","to","compute","the","product","of","the","flattened","array",".","dtype","The","desired","data","type","of","returned","array",".","Default","is","None",".","out","optional","output","array",",","for","writing","the","result","to",".","keepdims","If","this","is","set","to","True",",","the","axes","which","are","reduced","are","left","in","the","result","as","dimensions","with","size","one",".","With","this","option",",","the","result","will","broadcast","correctly","against","the","original","a.","initial","The","starting","value","for","this","product",".","where","Elements","to","include","in","the","product","Returns","--","--","--","-","ret","The","product","of","array","elements","over","a","given","axis","treating","Not","a","Numbers","(","NaNs",")","as","ones","Examples","--","--","--","--",">",">",">","a","=","ivy.array","(","[","[","1",",","2","]",",","[","3",",","ivy.nan","]","]",")",">",">",">","a.nanprod","(","a",")","6.0",">",">",">","a.nanprod","(","a",",","axis=0",")","ivy.array","(","[","3.",",","2",".","]",")"]
code: def nanprod(
      self: ivy.Array,
      /,
      *,
      axis: Optional[Union[Tuple[int], int]] = None,
      dtype: Optional[Union[ivy.Dtype, ivy.NativeDtype]] = None,
      out: Optional[ivy.Array] = None,
      keepdims: Optional[bool] = False,
      initial: Optional[Union[int, float, complex]] = None,
      where: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.nanprod. This method simply
      wraps the function, and so the docstring for ivy.prod also applies to
      this method with minimal changes.
  
      Parameters
      ----------
      self
          Input array.
      axis
          Axis or axes along which the product is computed.
          The default is to compute the product of the flattened array.
      dtype
          The desired data type of returned array. Default is None.
      out
          optional output array, for writing the result to.
      keepdims
          If this is set to True, the axes which are reduced are left in the result
          as dimensions with size one. With this option, the result will broadcast
          correctly against the original a.
      initial
          The starting value for this product.
      where
          Elements to include in the product
  
      Returns
      -------
      ret
          The product of array elements over a given axis treating
          Not a Numbers (NaNs) as ones
  
      Examples
      --------
      >>> a = ivy.array([[1, 2], [3, ivy.nan]])
      >>> a.nanprod(a)
      6.0
      >>> a.nanprod(a, axis=0)
      ivy.array([3., 2.])
      """
      return ivy.nanprod(
          self._data,
          axis=axis,
          keepdims=keepdims,
          dtype=dtype,
          out=out,
          initial=initial,
          where=where,
      )
  
file_path: ivy/ivy/data_classes/array/experimental/statistical.py
imports: import abc
  from typing import Optional, Union, Tuple, Sequence
  import ivy
label_desc: Use image node_id 5 for calling the _ArrayWithStatisticalExperimental obj's underlying member method code with example usage: obj.nanprod() and returns: ivy