summaryrefslogtreecommitdiff
path: root/numpy/ma/core.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2019-07-31 10:43:47 -0700
committerGitHub <noreply@github.com>2019-07-31 10:43:47 -0700
commit453aa08b88cf3497a67abd0ddc115a6a4fc43b81 (patch)
tree4fb8d866bf8f907180cacc86a75358872d0caec8 /numpy/ma/core.py
parent8eafe99694759d6589bc79b8f7a9410fac3a2cba (diff)
parentf483ad1f7fd3868fb2138afdb11f67063e149cf5 (diff)
downloadnumpy-453aa08b88cf3497a67abd0ddc115a6a4fc43b81.tar.gz
Merge pull request #14039 from sameshl/remove_depr_rank_func
DEP: Remove np.rank which has been deprecated for more than 5 years
Diffstat (limited to 'numpy/ma/core.py')
-rw-r--r--numpy/ma/core.py19
1 files changed, 1 insertions, 18 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py
index 8641819ff..95b799f6d 100644
--- a/numpy/ma/core.py
+++ b/numpy/ma/core.py
@@ -77,7 +77,7 @@ __all__ = [
'maximum_fill_value', 'mean', 'min', 'minimum', 'minimum_fill_value',
'mod', 'multiply', 'mvoid', 'ndim', 'negative', 'nomask', 'nonzero',
'not_equal', 'ones', 'outer', 'outerproduct', 'power', 'prod',
- 'product', 'ptp', 'put', 'putmask', 'rank', 'ravel', 'remainder',
+ 'product', 'ptp', 'put', 'putmask', 'ravel', 'remainder',
'repeat', 'reshape', 'resize', 'right_shift', 'round', 'round_',
'set_fill_value', 'shape', 'sin', 'sinh', 'size', 'soften_mask',
'sometrue', 'sort', 'sqrt', 'squeeze', 'std', 'subtract', 'sum',
@@ -7098,23 +7098,6 @@ def resize(x, new_shape):
return result
-def rank(obj):
- """
- maskedarray version of the numpy function.
-
- .. note::
- Deprecated since 1.10.0
-
- """
- # 2015-04-12, 1.10.0
- warnings.warn(
- "`rank` is deprecated; use the `ndim` function instead. ",
- np.VisibleDeprecationWarning, stacklevel=2)
- return np.ndim(getdata(obj))
-
-rank.__doc__ = np.rank.__doc__
-
-
def ndim(obj):
"""
maskedarray version of the numpy function.