def filter_events(data, r_max = 1.0, intensity_min = 10):
    """
    Filter events based on extracted features.

    Parameters
    ----------
    data: `pandas.DataFrame`

    Returns
    -------
    `pandas.DataFrame`
    """

    filter = (data['r'] < r_max) & (data['intensity'] > intensity_min)
    return data[filter]