DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`.
np.float, np.int and np.bool are deprecated in numpy 1.20 and need to be replaced by the builtin types:
np.__version__
Out[5]: '1.20.1'
np.float
<ipython-input-6-b3b46df38e48>:1: DeprecationWarning: `np.float` is a deprecated alias for the builtin `float`. To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.float64` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
np.float