Posts tagged with numpy

Linear regression in numpy and scipy

Note that there are multiple numpy/scipy functions that do regression, fitting, etc. Of these, scipy.stats.linregress fits a line and forces an intercept. Yo...

np.astype

To convert data types in numpy or scipy use np.astype.

Numpy float sizes

Numpy uses 64-bit floats by default, although supposedly this is implementation dependent. If you are reading this several years from now, then you will have...