def filter_data(df, filter_name, verbose=False):
    """Filter certain entries with given name."""
    df = df[df.stop_name.apply(lambda cell: filter_name.encode('utf-8') in
        cell)]
    if verbose:
        msg = '- Filtered down to %d entries containing "%s".'
        print(msg % (len(df), filter_name))
    return df
