parameters: (self)
return_statement: return data
docstring: Return all the non-masked data as a 1-D array.
  
          Returns
          -------
          data : ndarray
              A new `ndarray` holding the non-masked data is returned.
  
          Notes
          -----
          The result is **not** a MaskedArray!
  
          Examples
          --------
          >>> x = np.ma.array(np.arange(5), mask=[0]*2 + [1]*3)
          >>> x.compressed()
          array([0, 1])
          >>> type(x.compressed())
          <class 'numpy.ndarray'>
docstring_summary: Return all the non-masked data as a 1-D array.
docstring_tokens: Return all the non - masked data as a 1 - D array .
function: def compressed(self):
          """
          Return all the non-masked data as a 1-D array.
  
          Returns
          -------
          data : ndarray
              A new `ndarray` holding the non-masked data is returned.
  
          Notes
          -----
          The result is **not** a MaskedArray!
  
          Examples
          --------
          >>> x = np.ma.array(np.arange(5), mask=[0]*2 + [1]*3)
          >>> x.compressed()
          array([0, 1])
          >>> type(x.compressed())
          <class 'numpy.ndarray'>
  
          """
          data = ndarray.ravel(self._data)
          if self._mask is not nomask:
              data = data.compress(np.logical_not(ndarray.ravel(self._mask)))
          return data
function_tokens: def compressed ( self ) : data = ndarray . ravel ( self . _data ) if self . _mask is not nomask : data = data . compress ( np . logical_not ( ndarray . ravel ( self . _mask ) ) ) return data