numpy.Inf(inf)
IEEE 754 floating point representation of (positive) infinity.
See Also
numpy.Infinity
IEEE 754 floating point representation of (positive) infinity.
Use inf because Inf, Infinity, PINF and infty are aliases for inf. For more details, see inf.
np.inf==np.Inf
Out[75]: True
np.inf==np.Infinity
Out[76]: True
numpy.NAN(nan)
IEEE 754 floating point representation of Not a Number (NaN).
NaN and NAN are equivalent definitions of nan. Please use nan instead of NAN.
numpy.NINF(-inf)
IEEE 754 floating point representation of negative infinity.
numpy.newaxis
A convenient alias for None, useful for indexing arrays.
x = np.arange(3)
x
Out[78]: array([0, 1, 2])
x[:, np.newaxis]
Out[80]:
array([[0],
[1],
[2]])
x[np.newaxis,:]
Out[82]: array([[0, 1, 2]])