I have a function that takes user input from the user for every wrong column name in a dataset.
For example, if the master dataset has column names X, Y, Z but the child dataset has column names as A, B, C. I made user input the correct name to match it to the master. I save every wrong name as a key and right name as a value in a dictionary like this:
{"A":"X", "B":"Y", "C":"Z"}
I save that dictionary as a json file. I don't want the user to input the same name they have already entered earlier when the code runs again later and it should take reference from the dictionary we created earlier.
I am able to create the dictionary in first run but I don't know how to check the dictionary in next run and how to take reference from the dictionary first.