Last answered:

30 Mar 2023

Posted on:

26 Dec 2022

2

np.bool is not correct

np.bool won't work.

dtype = bool is the correct statement.

2 answers ( 0 marked as helpful)
Posted on:

18 Feb 2023

2

 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

Posted on:

30 Mar 2023

0

Yes, underscore or just put it in quotation marks without the np. Theres a lot of ways to do this.

Submit an answer