[SciPy-user] Return type inconsistency in polyfit and lstsq
Fri Jun 12 10:36:08 CDT 2009
On Fri, Jun 12, 2009 at 12:11 PM, Pauli Virtanen <firstname.lastname@example.org> wrote:
> Fri, 12 Jun 2009 12:05:13 -0230, Caleb Adamantine kirjoitti:
> > The inconsistency is that without scipy.stats imported, numpy.polyfit
> > (and scipy.polyfit) returns a vector (1D array) of coefficients, as per
> > the documentation, but when scipy.stats is imported, numpy.polyfit (and
> > scipy.polyfit) may return a 2D array.
> This was probably fixed by r6140, and so the issue should not be present
> any more in Numpy 1.3.0.
I upgraded SciPy and NumPy to the latest versions: the issue has been
fixed as you suggest.
More information about the SciPy-user