def split_according_to_profile(data):
    """Return 2 pandas.DataFrames. The first one contains only emission
    spectra and the second all others. Usually only double-peak profiles.

    The data pandas.DataFrame has to have a profile column.
    """
    emission_index = data['profile'] == 'emission'
    return data[emission_index], data[~emission_index]