parameters: (self, axis=None, dtype=None, out=None)
return_statement: return result
docstring: Return the cumulative sum of the array elements over the given axis.
  
          Masked values are set to 0 internally during the computation.
          However, their position is saved, and the result will be masked at
          the same locations.
  
          Refer to `numpy.cumsum` for full documentation.
  
          Notes
          -----
          The mask is lost if `out` is not a valid :class:`MaskedArray` !
  
          Arithmetic is modular when using integer types, and no error is
          raised on overflow.
  
          See Also
          --------
          ndarray.cumsum : corresponding function for ndarrays
          numpy.cumsum : equivalent function
  
          Examples
          --------
          >>> marr = np.ma.array(np.arange(10), mask=[0,0,0,1,1,1,0,0,0,0])
          >>> print(marr.cumsum())
          [0 1 3 -- -- -- 9 16 24 33]
docstring_summary: Return the cumulative sum of the array elements over the given axis.
docstring_tokens: Return the cumulative sum of the array elements over the given axis .
function: def cumsum(self, axis=None, dtype=None, out=None):
          """
          Return the cumulative sum of the array elements over the given axis.
  
          Masked values are set to 0 internally during the computation.
          However, their position is saved, and the result will be masked at
          the same locations.
  
          Refer to `numpy.cumsum` for full documentation.
  
          Notes
          -----
          The mask is lost if `out` is not a valid :class:`MaskedArray` !
  
          Arithmetic is modular when using integer types, and no error is
          raised on overflow.
  
          See Also
          --------
          ndarray.cumsum : corresponding function for ndarrays
          numpy.cumsum : equivalent function
  
          Examples
          --------
          >>> marr = np.ma.array(np.arange(10), mask=[0,0,0,1,1,1,0,0,0,0])
          >>> print(marr.cumsum())
          [0 1 3 -- -- -- 9 16 24 33]
  
          """
          result = self.filled(0).cumsum(axis=axis, dtype=dtype, out=out)
          if out is not None:
              if isinstance(out, MaskedArray):
                  out.__setmask__(self.mask)
              return out
          result = result.view(type(self))
          result.__setmask__(self._mask)
          return result
function_tokens: def cumsum ( self , axis = None , dtype = None , out = None ) : result = self . filled ( 0 ) . cumsum ( axis = axis , dtype = dtype , out = out ) if out is not None : if isinstance ( out , MaskedArray ) : out . __setmask__ ( self . mask ) return out result = result . view ( type ( self ) ) result . __setmask__ ( self . _mask ) return result