def get_uncommon_items(pronac):
    """
    Return all uncommon items of a project
    (related to segment common items).
    """
    segment_id = get_segment_id(str(pronac))
    seg_common_items = (
        segment_common_items(segment_id)
        .set_index('idPlanilhaItens')
        .index
    )
    project_items = (
        get_project_items(pronac)
        .set_index('idPlanilhaItens')
        .index
    )

    diff = list(project_items.difference(seg_common_items))

    return (
        data.distinct_items
        .loc[diff]
        .to_dict()['Item']
    )
def get_uncommon_items ( pronac ) : segment_id = get_segment_id ( str ( pronac ) ) seg_common_items = ( segment_common_items ( segment_id ) . set_index ( 'idPlanilhaItens' ) . index ) project_items = ( get_project_items ( pronac ) . set_index ( 'idPlanilhaItens' ) . index ) diff = list ( project_items . difference ( seg_common_items ) ) return ( data . distinct_items . loc [ diff ] . to_dict ( ) [ 'Item' ] )
Return all uncommon items of a project
    (related to segment common items).