def to_array(self):
dt = np.dtype(list(zip(self.labels, (c.dtype for c in self.columns))))<EOL>arr = np.empty_like(self.columns[<NUM_LIT:0>], dt)<EOL>for label in self.labels:<EOL><INDENT>arr[label] = self[label]<EOL><DEDENT>return arr<EOL>
Convert the table to a structured NumPy array.