def swap_column(content, col_index, col_info=[]):
    """
    Swap column position into the table

    Arguments:
        - the table content, a list of list of strings:
             - First dimension: the columns
             - Second dimensions: the column's content
        - cursor index for col
        - optional information to append from command line
    Returns:
        - the table content, a list of list of strings:
             - First dimension: the columns
             - Second dimensions: the column's content
    """

    nb_col = len(content)

    if col_index == nb_col:
        to_swap = col_index - 2
    else:
        to_swap = col_index

    col_saved = content[to_swap]
    del content[to_swap]
    content.insert(col_index - 1, col_saved)

    return content