def _extract_colnum(self, col):
if isinteger(col):<EOL><INDENT>colnum = col<EOL>if (colnum < <NUM_LIT:0>) or (colnum > (self._ncol-<NUM_LIT:1>)):<EOL><INDENT>raise ValueError(<EOL>"<STR_LIT>" % (<NUM_LIT:0>, self._ncol-<NUM_LIT:1>))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>colstr = mks(col)<EOL>try:<EOL><INDENT>if self.case_sensitive:<EOL><INDENT>mess = "<STR_LIT>" % col<EOL>colnum = self._colnames.index(colstr)<EOL><DEDENT>else:<EOL><INDENT>mess= "<STR_LIT>" % col<EOL>colnum = self._colnames_lower.index(colstr.lower())<EOL><DEDENT><DEDENT>except ValueError:<EOL><INDENT>raise ValueError(mess)<EOL><DEDENT><DEDENT>return int(colnum)<EOL>
Get the column number for the input column