summaryrefslogtreecommitdiff
path: root/numpy/ma/extras.py
diff options
context:
space:
mode:
authorElisha Hollander <just4now666666@gmail.com>2021-07-07 13:41:08 +0300
committerGitHub <noreply@github.com>2021-07-07 13:41:08 +0300
commitd785aa39f99720950cd7f9acfe1133494cb5ff58 (patch)
tree8f78de6090ff688d0da26dc99eef47a5a26c607b /numpy/ma/extras.py
parent3d83143c2c2f877ee921c4c7c6746d836c459839 (diff)
downloadnumpy-d785aa39f99720950cd7f9acfe1133494cb5ff58.tar.gz
MAINT: Remove unused imports and unreachable code (#18762)
* Remove unnecessary imports and minor fixes
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: