Last answered:

30 Mar 2023

Posted on:

26 Dec 2022


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 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_)

Just need to add the underscore after 'bool'.

The same goes for str (string).


Posted on:

30 Mar 2023


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

Submit an answer