def swap_apico_basal(organo):
    """Swap apical and basal segments of an organoid
    """
    for elem in ['vert', 'face', 'edge']:
        swaped = organo.datasets[elem]['segment'].copy()
        swaped.loc[organo.segment_index('apical', elem)] = 'basal'
        swaped.loc[organo.segment_index('basal', elem)] = 'apical'
        organo.datasets[elem]['segment'] = swaped
