import numpy as np # Chapter 2 Beginning with NumPy fundamentals # # Demonstrates the NumPy record data type. # # Run from the commandline with # # python record.py print "In: t = dtype([('name', numpy.str_, 40), ('numitems', numpy.int32), ('price', numpy.float32)])" t = np.dtype([('name', np.str_, 40), ('numitems', np.int32), ('price', np.float32)]) print t #Out: dtype([('name', '|S40'), ('numitems', '