With numpy 1.20+, the following lines throw warnings similar to these:
DeprecationWarning: `np.str` is a deprecated alias for the builtin `str`. To silence this warning, use `str` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.str_` here.
With numpy 1.20+, the following lines throw warnings similar to these:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations