[SciPy-user] Return type inconsistency in polyfit and lstsq
Pauli Virtanen
pav at iki.fi
Fri Jun 12 10:41:06 EDT 2009
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.
--
Pauli Virtanen
More information about the SciPy-User
mailing list