Last answered:

21 Feb 2023

Posted on:

23 Jan 2023

1

Getting error while setting dtype=np.str

I am getting the error message (

module 'numpy' has no attribute 'str'

)
Please resolve the issue

1 answers ( 0 marked as helpful)
Posted on:

21 Feb 2023

1

You need to add an underscore after the str. Use dtype = np.str_ 

Submit an answer