def derive_fabs_afa_generated_unique(row):
    """ Derives the afa_generated_unique for a row.

        Args:
            row: the dataframe row to derive the unique key for

        Returns:
            The afa_generated_unique for the row
    """
    return (row['awarding_sub_tier_agency_c'] or '-none-') + '_' + \
           (row['fain'] or '-none-') + '_' + \
           (row['uri'] or '-none-') + '_' + \
           (row['cfda_number'] or '-none-') + '_' + \
           (row['award_modification_amendme'] or '-none-')