Answers for "dtype function with example"

0

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)
Posted by: Guest on January-22-2022

Code answers related to "dtype function with example"

Python Answers by Framework

Browse Popular Code Answers by Language