x202=[
[23,“Fly”],
[1,2]
]
np.array(x202)
I have created a list with combination of integer and string. And then passed the list to create a array using Numpy. As per tutorial of sandeep sir numpy will throw error for different data type.
Please provide clarification.
array([[‘23’, ‘Fly’],
[‘1’, ‘2’]], dtype=’<U11’)