From cbaa809820656bf39f4ec78a9bec1426239ce440 Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Sat, 3 Jun 2017 13:23:46 +0100 Subject: MAINT: Don't internally use the one-argument where nonzero is a clearer spelling --- numpy/polynomial/polyutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/polynomial') diff --git a/numpy/polynomial/polyutils.py b/numpy/polynomial/polyutils.py index 5b6663bfd..22d649b0a 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: -- cgit v1.2.1