summaryrefslogtreecommitdiff
path: root/numpy/lib/polynomial.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2023-01-17 14:31:10 -0500
committerGitHub <noreply@github.com>2023-01-17 14:31:10 -0500
commit8535df676cf52c97ad4806e0aa76aa33eeea7113 (patch)
treeb697b73646f50cd96a1b29b9ea18fc1922588702 /numpy/lib/polynomial.py
parent90e233a85b9953e084a145e2b4ff0638adc9369a (diff)
parent2403dbea944a8b0628a9ec44cf630e01566cc989 (diff)
downloadnumpy-8535df676cf52c97ad4806e0aa76aa33eeea7113.tar.gz
Merge pull request #23020 from seberg/faster-array-function
ENH: Improve array function overhead by using vectorcall
Diffstat (limited to 'numpy/lib/polynomial.py')
-rw-r--r--numpy/lib/polynomial.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py
index 0f7ab0334..fb036108a 100644
--- a/numpy/lib/polynomial.py
+++ b/numpy/lib/polynomial.py
@@ -672,7 +672,7 @@ def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False):
# warn on rank reduction, which indicates an ill conditioned matrix
if rank != order and not full:
msg = "Polyfit may be poorly conditioned"
- warnings.warn(msg, RankWarning, stacklevel=4)
+ warnings.warn(msg, RankWarning, stacklevel=2)
if full:
return c, resids, rank, s, rcond