j
k
j a
j l
Why do the follow expressions give different dtype?
...np.array([1, 2, 3], dtype=str)
np.array([1, 2, 3], dtype=str)
array(['1', '2', '3'], dtype='|S1')
...np.array(np.array([1, 2, 3]), dtype=str)
np.array(np.array([1, 2, 3]), dtype=str)
array(['1', '2', '3'], dtype='|S8')
Back to the thread
Back to the list