def add_column(self, name, *, index=<NUM_LIT:0>, values=None):
if name is None:<EOL><INDENT>return None<EOL><DEDENT>params = {<EOL>'<STR_LIT:name>': name,<EOL>'<STR_LIT:index>': index<EOL>}<EOL>if values is not None:<EOL><INDENT>params['<STR_LIT>'] = values<EOL><DEDENT>url = self.build_url(self._endpoints.get('<STR_LIT>'))<EOL>response = self.session.post(url, data=params)<EOL>if not response:<EOL><INDENT>return None<EOL><DEDENT>data = response.json()<EOL>return self.column_constructor(parent=self, **{self._cloud_data_key: data})<EOL>
Adds a column to the table
:param str name: the name of the column
:param int index: the index at which the column should be added. Defaults to 0.
:param list values: a two dimension array of values to add to the column