NumPy - Array Data Types
Given a NumPy array of byte strings:
How can you convert it to an array of Unicode strings without losing data?
arr = np.array([b'abc', b'defg', b'hi'], dtype='S4')
How can you convert it to an array of Unicode strings without losing data?
