from typing import OrderedDict


def _split_table(table: OrderedDict):
    """Splits an OrderedDict into a list of tuples that can be turned into a
    HTML-table with pandas DataFrame

    Parameters
    ----------
    table: OrderedDict
        table that is to be split into two columns

    Returns
    -------
    table_split: List[tuple(key, value, key, value)]
        list with two key-value pairs per entry that can be used by pandas
        df.to_html()
    """
    table_split = []
    keys = list(table.keys())
    half_size = len(keys) // 2
    for i in range(half_size):
        j = i + half_size
        table_split.append(("<b>" + keys[i] + "</b>", table[keys[i]],
                            "<b>" + keys[j] + "</b>", table[keys[j]]))
    if len(keys) % 2 == 1:
        table_split.append(("<b>"+keys[-1]+"</b>", table[keys[-1]], '', ''))
    return table_split