np.bool is not correct
np.bool won't work.
dtype = bool is the correct statement.
2 answers ( 0 marked as helpful)
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations if you to go that like below the message error, it directs you to the solution that shoul be:
array_a = np.array([[1,2,3],[4,5,6]], dtype = np.bool_)
array_a
Just need to add the underscore after 'bool'.
The same goes for str (string).
Greetings
Yes, underscore or just put it in quotation marks without the np. Theres a lot of ways to do this.