Shortcut to MaskedArray. The options are in a different order for convenience and backwards compatibility.
(data, dtype=None, copy=False, order=None,
mask=nomask, fill_value=None, keep_mask=True,
hard_mask=False, shrink=True, subok=True, ndmin=0)
| 6658 | |
| 6659 | |
| 6660 | def array(data, dtype=None, copy=False, order=None, |
| 6661 | mask=nomask, fill_value=None, keep_mask=True, |
| 6662 | hard_mask=False, shrink=True, subok=True, ndmin=0): |
| 6663 | """ |
| 6664 | Shortcut to MaskedArray. |
| 6665 | |
| 6666 | The options are in a different order for convenience and backwards |
| 6667 | compatibility. |
| 6668 | |
| 6669 | """ |
| 6670 | return MaskedArray(data, mask=mask, dtype=dtype, copy=copy, |
| 6671 | subok=subok, keep_mask=keep_mask, |
| 6672 | hard_mask=hard_mask, fill_value=fill_value, |
| 6673 | ndmin=ndmin, shrink=shrink, order=order) |
| 6674 | array.__doc__ = masked_array.__doc__ |
| 6675 | |
| 6676 |