summaryrefslogtreecommitdiff
path: root/numpy/polynomial
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2017-06-03 09:31:38 -0600
committerGitHub <noreply@github.com>2017-06-03 09:31:38 -0600
commit48b0374b8cb2e06a1bc620a9dcaa35c2d92753f2 (patch)
treeb02ce41cd466d1fba0d5918904ffbd3b128f1444 /numpy/polynomial
parente5e2cf89d01d7b09631977482b11df79e8131c6d (diff)
parentcbaa809820656bf39f4ec78a9bec1426239ce440 (diff)
downloadnumpy-48b0374b8cb2e06a1bc620a9dcaa35c2d92753f2.tar.gz
Merge pull request #9214 from eric-wieser/no-one-arg-where
MAINT: Don't internally use the one-argument where
Diffstat (limited to 'numpy/polynomial')
-rw-r--r--numpy/polynomial/polyutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/polynomial/polyutils.py b/numpy/polynomial/polyutils.py
index 59f130a60..e2dba1a55 100644
--- a/numpy/polynomial/polyutils.py
+++ b/numpy/polynomial/polyutils.py
@@ -236,7 +236,7 @@ def trimcoef(c, tol=0):
raise ValueError("tol must be non-negative")
[c] = as_series([c])
- [ind] = np.where(np.abs(c) > tol)
+ [ind] = np.nonzero(np.abs(c) > tol)
if len(ind) == 0:
return c[:1]*0
else: