Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
495 B
1
Indexable
Never
in the below code part iam checking the length of columns and adding the version in the column where it got missed but i want you to compare both values are same or not if anything is missing in any field the you should add that dynamically instead of hard coding
        if len(column_names) < len(eprm_join_cols_entity.split(',')):
            column_names.append('version')
        elif len(column_names) > len(eprm_join_cols_entity.split(',')):
            eprm_join_cols_entity+=', version'