I am writing all my conditions in a notepad for now so that I can access that file and use anytime for any change in condition for my dataframe. My notepad txt file looks like below:
cond1 = (df['A'] == 1)
cond2 = (df['B'] >= 50)
When I read the text file, I get something like below:
["cond1 = (df['A] == 1)", "cond2 = (df['B] >= 50)"]
I wanted to convert this list to actual assignment operation. Like after execution, cond1 variable should be created and also cond2 as well. In case there are better way than storing in txt file, please advice as well.
Thank you