8000 Merge pull request #28094 from Uvi-12/np.ma · numpy/numpy@206f697 · GitHub
[go: up one dir, main page]

Skip to content

Commit 206f697

Browse files
authored
Merge pull request #28094 from Uvi-12/np.ma
DOC: Fix documentation example for numpy.ma.masked
2 parents 4291e5f + 1f207b9 commit 206f697

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

doc/source/reference/maskedarray.baseclass.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
.. currentmodule:: numpy.ma
22

3-
.. for doctests
4-
>>> from numpy import ma
5-
63
.. _numpy.ma.constants:
74

85
Constants of the :mod:`numpy.ma` module
@@ -20,10 +17,10 @@ defines several constants.
2017

2118
>>> import numpy as np
2219

23-
>>> x = ma.array([1, 2, 3], mask=[0, 1, 0])
24-
>>> x[1] is ma.masked
20+
>>> x = np.ma.array([1, 2, 3], mask=[0, 1, 0])
21+
>>> x[1] is np.ma.masked
2522
True
26-
>>> x[-1] = ma.masked
23+
>>> x[-1] = np.ma.masked
2724
>>> x
2825
masked_array(data=[1, --, --],
2926
mask=[False, True, True],

0 commit comments

Comments
 (0)
0