Delete Column

table = self._hc.get_table(tbl_name = self._table_name, database_name = self._database_name)  
column_names = ["column_add_1_rename", "column_add_2_rename"]  
result = table.delete_columns(column_names = column_names)  

Result:

This method will a Boolean value to represent whether this operation is successful. If the error pops up when deleting columns, “ValueError” exception will be raised.

Parameter description:

ParametersDescriptionRequired
column_names (list)Field list to be deletedYes

Table 91 Delete Column (Python API)