@security.permissions('edit')
    def create_column(self, index, title, nb_cards=None):
        """Create a new column in the board

        In:
            - ``index`` -- the position of the column as an integer
            - ``title`` -- the title of the new column
            - ``nb_cards`` -- the number of maximun cards on the colum
        """
        if 0 < index:
            index = index + len(self.columns) + 1
        if title == '':
            return False
        col = self.data.create_column(index, title, nb_cards)
        col_obj = self._services(
            column.Column, col.id, self,
            self.card_extensions, self.action_log)
        self.columns.insert(
            index, component.Component(col_obj))
        self.increase_version()
        return col_obj
dataset/ETHPy150Open Net-ng/kansha/kansha/board/comp.py/Board.create_column/swapped operands of `<`