Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
655 B
3
Indexable
Never
if len(column_names) < len(eprm_join_cols_entity.split(',')):
    # Find the missing fields by subtracting column_names from eprm_join_cols_entity
    missing_fields = set(eprm_join_cols_entity.split(',')) - set(column_names)
    # Add the missing fields to column_names
    column_names.extend(missing_fields)
elif len(column_names) > len(eprm_join_cols_entity.split(',')):
    # Find the missing fields by subtracting eprm_join_cols_entity from column_names
    missing_fields = set(column_names) - set(eprm_join_cols_entity.split(','))
    # Add the missing fields to eprm_join_cols_entity
    eprm_join_cols_entity += ', ' + ', '.join(missing_fields)