parameters: (self, axis=None, dtype=None, out=None)
return_statement: return res
docstring: The 'axis' parameter can be an int (axis position) or string (axis key).
docstring_summary: The 'axis' parameter can be an int (axis position) or string (axis key).
docstring_tokens: The axis parameter can be an int ( axis position ) or string ( axis key ) .
function: def cumprod(self, axis=None, dtype=None, out=None):
          '''
          The 'axis' parameter can be an int (axis position) or string (axis key).
          '''
          if type(axis) == str:
              axis = self.axistags.index(axis)
          res = numpy.ndarray.cumprod(self, axis, dtype, out)
          if axis is None and out is None:
              res.axistags = res._empty_axistags(res.ndim)
          return res
function_tokens: def cumprod ( self , axis = None , dtype = None , out = None ) : if type ( axis ) == str : axis = self . axistags . index ( axis ) res = numpy . ndarray . cumprod ( self , axis , dtype , out ) if axis is None and out is None : res . axistags = res . _empty_axistags ( res . ndim ) return res