### Navigation

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

# numpy.ma.mask_rowcols

`numpy.ma.``mask_rowcols`(a, axis=None)

  Mask whole rows and/or columns of a 2D array that contain masked values. The masking behavior is selected with the axis parameter.

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

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

### Navigation

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