def create_dict_from_columns(array, idx_key, idx_value):
    """
    Create a dictionary to assign item to their cluster_id based on a DataFrame

    Args:
        array: numpy array, shape=(n_samples, n_features).
        idx_key: int, index of the column used as a key in the dictionary.
        idx_value: int, index of the column used as a value in the dictionary.

    Returns:
        dict, item index (as key) and cluster assignation (as value)

    To do: check type idx_X -> must be integer
    """

    return dict(zip(array[:, idx_key].astype(int), array[:, idx_value].astype(int)))