import numpy as np
# Create a NumPy array with two rows and three columns,
# specifying the data type for each column as integer.
arr = np.array([(1, 2, 3), (4, 5, 6)], dtype=[('a', int), ('b', int), ('c', int)])
# Convert the array into a NumPy record array.
rec_arr = np.rec.array(arr)
# Print the resulting record array.
print(rec_arr)