def column(self, index_or_label):
if (isinstance(index_or_label, str)<EOL>and index_or_label not in self.labels):<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>.format(index_or_label, '<STR_LIT:U+002CU+0020>'.join(self.labels))<EOL>)<EOL><DEDENT>if (isinstance(index_or_label, int)<EOL>and not <NUM_LIT:0> <= index_or_label < len(self.labels)):<EOL><INDENT>raise ValueError(<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>.format(index_or_label, len(self.labels) - <NUM_LIT:1>)<EOL>)<EOL><DEDENT>return self._columns[self._as_label(index_or_label)]<EOL>
Return the values of a column as an array.

        table.column(label) is equivalent to table[label].

        >>> tiles = Table().with_columns(
        ...     'letter', make_array('c', 'd'),
        ...     'count',  make_array(2, 4),
        ... )

        >>> list(tiles.column('letter'))
        ['c', 'd']
        >>> tiles.column(1)
        array([2, 4])

        Args:
            label (int or str): The index or label of a column

        Returns:
            An instance of ``numpy.array``.

        Raises:
            ``ValueError``: When the ``index_or_label`` is not in the table.