numpy deprecated type aliases like np.complex
in 1.20.0 and removed them entirely in 1.24.0.
Finding examples of this in code with a regular expression:
\b(np|numpy)\.(complex|bool|int|float|object|str|unicode|long)\b
Any reference to np.complex
should be replaced simply with complex
.
Same for bool
, int
, float
, object
, and str
. Some have different names:
np.unicode
becomes str
and np.long
becomes int
.