### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Masked array operations »

# numpy.ma.compress_rowcols

`numpy.ma.``compress_rowcols`(x, axis=None)

  Suppress the rows and/or columns of a 2D array that contain masked values.

  The suppression behavior is selected with the axis parameter.

  > - If axis is None, rows and columns are suppressed.
  > - If axis is 0, only rows are suppressed.
  > - If axis is 1 or -1, only columns are suppressed.

  Parameters: | axis : int, optional Axis along which to perform the operation. If None, applies to a flattened version of the array.
  Returns: | compressed_array : an ndarray.

### Navigation

- index
- modules |
- next |
- previous |
- NumPy v1.3 Manual (DRAFT) »
- NumPy Reference »
- Routines »
- Masked array operations »