Last answered:

04 Jun 2024

Posted on:

20 Feb 2023

1

Array of strings

Hi, i received this error when i tried to create an array of strings


AttributeError: module 'numpy' has no attribute 'str'

2 answers ( 0 marked as helpful)
Super learner
This user is a Super Learner. To become a Super Learner, you need to reach Level 8.
Posted on:

08 Jan 2024

1

just use str instead of np.str


same with bool


the reason is buried in the error message somewhere

Posted on:

04 Jun 2024

1

use 'str_'

similary, use 'bool_'

Submit an answer