def write_column(self, column, data, **keys):
firstrow = keys.get('<STR_LIT>', <NUM_LIT:0>)<EOL>colnum = self._extract_colnum(column)<EOL>if not data.flags['<STR_LIT>']:<EOL><INDENT>data_send = numpy.ascontiguousarray(data)<EOL>array_to_native(data_send, inplace=True)<EOL><DEDENT>else:<EOL><INDENT>data_send = array_to_native(data, inplace=False)<EOL><DEDENT>if IS_PY3 and data_send.dtype.char == '<STR_LIT>':<EOL><INDENT>data_send = data_send.astype('<STR_LIT:S>', copy=False)<EOL><DEDENT>self._verify_column_data(colnum, data_send)<EOL>self._FITS.write_column(<EOL>self._ext+<NUM_LIT:1>, colnum+<NUM_LIT:1>, data_send,<EOL>firstrow=firstrow+<NUM_LIT:1>, write_bitcols=self.write_bitcols)<EOL>del data_send<EOL>self._update_info()<EOL>
Write data to a column in this HDU

This HDU must be a table HDU.

parameters
----------
column: scalar string/integer
    The column in which to write.  Can be the name or number (0 offset)
column: ndarray
    Numerical python array to write.  This should match the
    shape of the column.  You are probably better using
    fits.write_table() to be sure.
firstrow: integer, optional
    At which row you should begin writing.  Be sure you know what you
    are doing!  For appending see the append() method.  Default 0.