add_docstring | It’s still available as np.lib.add_docstring. |
add_newdoc | It’s still available as np.lib.add_newdoc. |
add_newdoc_ufunc | It’s an internal function and doesn’t have a replacement. |
alltrue | Use np.all instead. |
asfarray | Use np.asarray with a float dtype instead. |
byte_bounds | Now it’s available under np.lib.array_utils.byte_bounds |
cast | Use np.asarray(arr, dtype=dtype) instead. |
cfloat | Use np.complex128 instead. |
charrarray | It’s still available as np.char.chararray. |
clongfloat | Use np.clongdouble instead. |
compare_chararrays | It’s still available as np.char.compare_chararrays. |
compat | There’s no replacement, as Python 2 is no longer supported. |
complex_ | Use np.complex128 instead. |
cumproduct | Use np.cumprod instead. |
DataSource | It’s still available as np.lib.npyio.DataSource. |
deprecate | Emit DeprecationWarning with warnings.warn directly,
or use typing.deprecated. |
deprecate_with_doc | Emit DeprecationWarning with warnings.warn directly,
or use typing.deprecated. |
disp | Use your own printing function instead. |
fastCopyAndTranspose | Use arr.T.copy() instead. |
find_common_type | Use numpy.promote_types or numpy.result_type instead.
To achieve semantics for the scalar_types argument,
use numpy.result_type and pass the Python values 0,
0.0, or 0j. |
format_parser | It’s still available as np.rec.format_parser. |
get_array_wrap | |
float_ | Use np.float64 instead. |
geterrobj | Use the np.errstate context manager instead. |
Inf | Use np.inf instead. |
Infinity | Use np.inf instead. |
infty | Use np.inf instead. |
issctype | Use issubclass(rep, np.generic) instead. |
issubclass_ | Use issubclass builtin instead. |
issubsctype | Use np.issubdtype instead. |
mat | Use np.asmatrix instead. |
maximum_sctype | Use a specific dtype instead. You should avoid relying
on any implicit mechanism and select the largest dtype of
a kind explicitly in the code. |
NaN | Use np.nan instead. |
nbytes | Use np.dtype(<dtype>).itemsize instead. |
NINF | Use -np.inf instead. |
NZERO | Use -0.0 instead. |
longcomplex | Use np.clongdouble instead. |
longfloat | Use np.longdouble instead. |
lookfor | Search NumPy’s documentation directly. |
obj2sctype | Use np.dtype(obj).type instead. |
PINF | Use np.inf instead. |
product | Use np.prod instead. |
PZERO | Use 0.0 instead. |
recfromcsv | Use np.genfromtxt with comma delimiter instead. |
recfromtxt | Use np.genfromtxt instead. |
round_ | Use np.round instead. |
safe_eval | Use ast.literal_eval instead. |
sctype2char | Use np.dtype(obj).char instead. |
sctypes | Access dtypes explicitly instead. |
seterrobj | Use the np.errstate context manager instead. |
set_numeric_ops | For the general case, use PyUFunc_ReplaceLoopBySignature.
For ndarray subclasses, define the __array_ufunc__ method
and override the relevant ufunc. |
set_string_function | Use np.set_printoptions instead with a formatter
for custom printing of NumPy objects. |
singlecomplex | Use np.complex64 instead. |
string_ | Use np.bytes_ instead. |
sometrue | Use np.any instead. |
source | Use inspect.getsource instead. |
tracemalloc_domain | It’s now available from np.lib. |
unicode_ | Use np.str_ instead. |
who | Use an IDE variable explorer or locals() instead. |