Beispiel #1
0
 def prod(self, *, axis=None, skipna=True, min_count=0, **kwargs) -> Scalar:
     nv.validate_prod((), kwargs)
     result = nanops.nanprod(self._ndarray,
                             axis=axis,
                             skipna=skipna,
                             min_count=min_count)
     return self._wrap_reduction_result(axis, result)
Beispiel #2
0
 def prod(
     self,
     axis=None,
     dtype=None,
     out=None,
     keepdims=False,
     initial=None,
     skipna=True,
     min_count=0,
 ):
     nv.validate_prod(
         (), dict(dtype=dtype, out=out, keepdims=keepdims, initial=initial)
     )
     return nanops.nanprod(
         self._ndarray, axis=axis, skipna=skipna, min_count=min_count
     )
Beispiel #3
0
 def prod(self, axis=None, dtype=None, out=None, keepdims=False,
          initial=None, skipna=True, min_count=0):
     nv.validate_prod((), dict(dtype=dtype, out=out, keepdims=keepdims,
                               initial=initial))
     return nanops.nanprod(self._ndarray, axis=axis, skipna=skipna,
                           min_count=min_count)
Beispiel #4
0
 def prod(self, axis=None, skipna=True, min_count=0, **kwargs) -> Scalar:
     nv.validate_prod((), kwargs)
     return nanops.nanprod(self._ndarray,
                           axis=axis,
                           skipna=skipna,
                           min_count=min_count)