21 Feb 2023
For future inconvenients you have to add a underscore after the str (np.str_) then the code will work.
You can also just remove the np. and just have the str. This would work as well.