summaryrefslogtreecommitdiff
path: root/numpy/lib/polynomial.py
diff options
context:
space:
mode:
authorJoseph Fox-Rabinovitz <madphysicist@users.noreply.github.com>2016-08-26 12:21:02 -0400
committerGitHub <noreply@github.com>2016-08-26 12:21:02 -0400
commit3bc03ae143b5321abf5ab2fd6676286d4c090716 (patch)
tree18774468065215d3878048fd67206e3af0e3d5a7 /numpy/lib/polynomial.py
parent90668d0e740e30102fa3d0a1a72b485ebe9d99c3 (diff)
downloadnumpy-3bc03ae143b5321abf5ab2fd6676286d4c090716.tar.gz
DOC: Fixed documented dimension of return value
The first dimension of the return value depends on the degree of the polynomial, not the number of elements being used in the fit.
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 d96b8969f..d178ba4b3 100644
--- a/numpy/lib/polynomial.py
+++ b/numpy/lib/polynomial.py
@@ -431,7 +431,7 @@ def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False):
Returns
-------
- p : ndarray, shape (M,) or (M, K)
+ p : ndarray, shape (deg + 1,) or (deg + 1, K)
Polynomial coefficients, highest power first. If `y` was 2-D, the
coefficients for `k`-th data set are in ``p[:,k]``.