def clean_data(data, first_seconds_remove=2, bandpass_range=(5, 50)):
    """
    Removes first 2 seconds and bandpass filters data. Takes MNE data object and tuple for bandpass filter range.
    """
    # bandpass filter
    data.filter(*bandpass_range)

    # remove first seconds data
    print(f'removing first {first_seconds_remove} seconds')
    data.crop(first_seconds_remove)

    return data