def sieve(indices, dates):
    """
    Filters the indices using the dates
    :param indices: The indices values to filter
    :param dates: The dates used to filter
    :return: Filtered indices
    """
    rt = dict()
    for _ in dates:
        if len(indices[_]) > 0:
            rt[_] = indices[_]
    return rt