Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

dtype function with example

import numpy as np

array_mix_type = np.ones((2, 2), dtype=[('x', 'int'), ('y', 'float')])
print(array_mix_type)
print(array_mix_type.dtype)
Source by www.journaldev.com #
 
PREVIOUS NEXT
Tagged: #dtype #function
ADD COMMENT
Topic
Name
5+6 =