How To Prevent Duplicated Records And Only Update It?
i want to add some records to another table model without duplicated it i create a function to check the table data and return specific values to add it in another table here is m
Solution 1:
Do you mean you're trying to merge 2 list but want to have only 1 unique instance of each item?
If this is the case you could add all of the data to the list then run something like noobs_data_trimmed = list(set(noobs_data))
Making a list into a set will obliterate exact duplicates within the set. Then you can turn it back into a list for easier processing.
Post a Comment for "How To Prevent Duplicated Records And Only Update It?"