Tweets about SciPy (Scientific Python) and related topics from @JohnDCook.

Houston
Can compute quantiles with np.quantile. For example, np.quantile(x, [0.25, 0.5, 0.75]) yields quartiles.
1
1
12
6,390
NumPy arrays have methods sum(), mean(), var(), and std() for simple statistics.
1
17
6,369
Matplotlib labels can take TeX strings, e.g. plt.xlabel(r'$\sqrt{x}$')
13
6,484
SciPy has optimized versions of Bessel functions of order 0 and 1. For example, j0(z) & j1(z) are faster versions of jn(0, z) & jn(1,z).
1
18
6,548
astropy.io.ascii provides methods for reading and writing a wide range of ASCII data table formats. docs.astropy.org/en/latest/i…
5
6,084
BLAS: Basic Linear Algebra Subprograms netlib.org/blas/
31
6,494
The Blaze Ecosystem blaze.pydata.org/
1
9
6,500
Special functions (Bessel functions, Gamma function, etc.) are located in scipy.special.
1
18
6,503
Volumetric data analysis for astronomy yt-project.org/
8
6,699
np.isfinite() returns false if a number is inf or nan.
1
8
6,220
math.sqrt(-1) raises an exception. scipy.sqrt(-1) returns 1j.
1
1
10
6,548
Log-determinant safely: sign, ld = np.linalg.slogdet(A) avoids overflow/underflow vs log(det(A)).
1
7
6,089
scipy.sparse.sparsetools contains efficient low-level routines for working with sparse matrices.
15
6,574
sp.interpolate.interp1d does one-dimensional interpolation. The 'kind' option lets you specify linear, quadratic, cubic, etc.
1
8
6,655
Understanding the FFT Algorithm jakevdp.github.io/blog/2013/…
2
1
23
6,754
sympy.fibonacci(n) returns the nth Fibonacci number.
2
1
14
6,731
np.isinf() test whether a number is finite.
1
2
12
6,660