Dash App call back append new entry in data frame and replace if matches with any previous entry

Can anyone help me on this?

I just posted an answer on stackoverflow. Let me know if anything remains unclear :slight_smile: