from typing import OrderedDict


def load_object(worksheet):
    """
    Converts worksheet to dictionary
    Args:
        object: worksheet

    Returns:
        object: dictionary
    """
    #d = {}
    #d = OrderedDict()
    d = OrderedDict()
    for curr_col in range(0, worksheet.ncols):
        liste_elts = worksheet.col_values(curr_col)
        d[worksheet.cell_value(0, curr_col)] = liste_elts[1:len(liste_elts)]
    return d