def get_filter_results(inventorized_data, filter_function, verbose=False):
    """
    Apply pd.Index-returning function to data and return it filtered.
    """
    try:
        index = filter_function(inventorized_data)
    except KeyError as e:
        if verbose:
            print("Error in {}:".format(filter_function.__name__), str(e))
        return None
    else:
        return inventorized_data.loc[index]