summaryrefslogtreecommitdiff
path: root/numpy/ma/extras.py
diff options
context:
space:
mode:
authorslepton <slepton@posteo.de>2021-07-07 21:25:53 +0200
committerslepton <slepton@posteo.de>2021-07-07 21:25:53 +0200
commitd19584547a7934bfce9dee445e65a2c1994cecdc (patch)
tree2013779442bff7d9f47464fd3a1b6ba755b0070d /numpy/ma/extras.py
parent5ac75798362cea6ecbd602a46b80c297b0f6712a (diff)
parentde245cd133699f8c23f97ec07ec29703e37a5923 (diff)
downloadnumpy-d19584547a7934bfce9dee445e65a2c1994cecdc.tar.gz
Merge remote-tracking branch 'origin/main' into main
Diffstat (limited to 'numpy/ma/extras.py')
-rw-r--r--numpy/ma/extras.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/numpy/ma/extras.py b/numpy/ma/extras.py
index c139f4640..73abfc296 100644
--- a/numpy/ma/extras.py
+++ b/numpy/ma/extras.py
@@ -743,7 +743,6 @@ def _median(a, axis=None, out=None, overwrite_input=False):
return np.ma.mean(asorted[indexer], axis=axis, out=out)
if asorted.ndim == 1:
- counts = count(asorted)
idx, odd = divmod(count(asorted), 2)
mid = asorted[idx + odd - 1:idx + 1]
if np.issubdtype(asorted.dtype, np.inexact) and asorted.size > 0: