Numpy -----doubt related to data type

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’)

Hey Atif,

Numpy has converted everything into strings. My understanding was that it would exception but it is converting it into strings which is I think right behaviour.

Regards,
Sandeep Giri

Thanks Sir for the clarification