Determining data types

Report a typo

Imagine you are to create an array with a missing data type, X:

array_1 = np.array([[129, 13], [130, 9]], dtype=X) 

When you print array_1, you want the output to be:

print(array_1)
# [['129'   '13']
#  ['130'    '9']]

What is the appropriate data type for X when creating array_1?

Enter a short text
___

Create a free account to access the full topic