def delete_column()

in python/thrift/client.py [0:0]


    def delete_column(self, table, row_key, column):
        """ Deletes a column from a row in the table. If it's the last remaining
        column it will also delete the row.

        :param table: The name of the table
        :param row_key: The key of the row we want to put a value in
        :param column: The column name including the column family with the
                       colon format, such as 'cf:count'
        :return: None
        """
        try:
            mutations = [Hbase.Mutation(column=column,
                                        isDelete=1)]
            self.client.mutateRow(table, row_key, mutations)
        except Thrift.TException, tx:
            print '%s' % tx.message