Compare  file and table data and dynamically excludes the specified columns in Python