Why a dict? Can this be an ndarray or a pandas Series/Dataframe object?