def normed_areas(dataframe):
    """
    Takes in morphology descriptors dataframe and calculates a normalized area covered
    by each of the present phases
    """    
    phases = dataframe['GMM_label'].unique()
    
    areas = []
    
    for phase in phases:
        
        phase_rows = dataframe[dataframe['GMM_label'] == phase]
        total_area = phase_rows['area'].sum()
        areas.append(total_area)
        
    normed_areas = areas/max(areas)
    
    return normed_areas